On Sun, 6 Mar 2022 20:35:04 GMT, Alan Bateman <al...@openjdk.org> wrote:

> jshell compiles code snippets at runtime so it --enable-preview is used with 
> the compile (along with --release or --source I assume) and also added to the 
> options specified to the debuggee, so -R.

jshell also has `-C` to pass through to the compiler, so it sounds like the 
list of 5 options I mentioned above (including `--enable-preview`) are treated 
like they were specified with both -C and -R.

> In the case of jdb then I think we want --enable-preview passed through to 
> debuggees that jdb starts launching connectors, so I a bit like jshell -R.

Yes, that's what this PR does, in addition to passing through `--add-modules`. 
I'm thinking I should add `--module-path` also.

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

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

Reply via email to