RFR: 8268725: jshell does not support the --enable-native-access option [v2]

Jan Lahoda jlahoda at openjdk.java.net
Fri Jul 16 18:12:50 UTC 2021


On Fri, 16 Jul 2021 12:45:21 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:

> LGTM
> 
> Is this consistent with other module specific options? enable native access can be specified per module basis as well (in addition to ALL-UNNAMED)

That is a good question. I don't think we have a module-specific option quite like this - we have `--add-modules`, but that is significantly different. I suspect most code run in JShell runs in the(/an) unnamed module, and having simple `--enable-native-access` helps with that. If the users want add modules, they need to use `--add-modules`, and they may have to use `-R--enable-native-access=<module-name>`, but I suspect that will be a small minority of users.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4810


More information about the kulla-dev mailing list