Electrostat-Lab / Electrostat-Lab/jSnapLoader

add module info

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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:
```console
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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.