RFR: 8259820: JShell does not handle -source 8 properly
Athijegannathan Sundararajan
sundar at openjdk.java.net
Fri Jan 15 10:00:05 UTC 2021
On Fri, 15 Jan 2021 09:29:28 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> When running JShell with `-C-source -C8`, only one (non-import) snippet can be processed. This is because, when cleaning javac state, the `REPL` package is looked up in the unnamed package, but with `-source 8`, there is no unnamed package, so the `REPL` package is not found and cleared properly. The proposed solution is to use `noModule` when running in non-module mode (i.e. with `-source 8`).
Marked as reviewed by sundar (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/2097
More information about the kulla-dev
mailing list