Integrated: 8259820: JShell does not handle -source 8 properly

Jan Lahoda jlahoda at openjdk.java.net
Fri Jan 15 12:48:07 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`).

This pull request has now been integrated.

Changeset: 0ec2c969
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/0ec2c969
Stats:     58 lines in 2 files changed: 56 ins; 0 del; 2 mod

8259820: JShell does not handle -source 8 properly

Reviewed-by: sundar

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

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


More information about the kulla-dev mailing list