RFR: 8268725: jshell does not support the --enable-native-access option [v2]
Rémi Forax
forax at openjdk.java.net
Thu Sep 2 13:47:38 UTC 2021
On Fri, 16 Jul 2021 18:06:27 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
>> Adding `--enable-native-access` option to JShell. Set as a parameter to the remote agent (`--enable-native-access=ALL-UNNAMED`), but not the compiler, as the compiler does not have this option.
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
>
> Including --enable-native-access in help
I don't like the fact that --enable-native-access will behave differently with java and jshell,
in fact, it's worst, for jshell, --enable-native-access and -R--enable-native-access will behave differently.
For me, either "--enable-native-access" is a valid syntax and in case both java and jshell should support it,
or the shortcut to use the unnamed module does not worth the cost and in that case, it should not be implemented.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4810
More information about the kulla-dev
mailing list