Skip to content

add module info #45

Description

@stephengold

JSnapLoader v1.1.1 does not define a module, so Java considers it part of the Unnamed Module.

For this reason, when jSnapLoader invokes the System.load() method, Java 24 issues a runtime warning:

WARNING: A restricted method in java.lang.System has been called

This warning can be suppressed using --enable-native-access=ALL-UNNAMED. However, this workaround is risky from a security standpoint because it might give access to large swaths of code that don't need such access.

To mitigate this risk, it would better if jSnapLoader defined its own module, which should probably be named electrostatic4j.snaploader.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions