On Sun, 6 Mar 2022 08:49:25 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:

> Is that the same as `-R--enable-preview` or `-J--enable-preview`? The help 
> output isn't clear. It list the following options, which at first glance look 
> like they would apply to the target process, but than that's also what `-R` 
> is for:

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.

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.

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

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

Reply via email to