Integrated: 8341833: incomplete snippet from loaded files from command line is ignored
Jan Lahoda
jlahoda at openjdk.org
Wed Apr 23 13:29:00 UTC 2025
On Fri, 20 Dec 2024 17:32:33 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> If JShell is run with a parameter that is a file, and the file ends with an incomplete snippet, the incomplete snippet is ignored.
>
> For example:
>
> t.jsh:
> class {
>
>
> jshell /tmp/t.jsh
> | Welcome to JShell -- Version 21.0.5
> | For an introduction type: /help intro
>
> jshell>
>
>
> This PR proposes to produce an explicit error in this case:
>
> $ jshell /tmp/t.jsh
> Building target 'default (exploded-image)' in configuration 'linux-x86_64-server-release'
> Finished building target 'default (exploded-image)' in configuration 'linux-x86_64-server-release'
> Incomplete input: class {
> | Welcome to JShell -- Version 25-internal
> | For an introduction type: /help intro
>
> jshell>
This pull request has now been integrated.
Changeset: 3c7f78c0
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3c7f78c066b303d32defeda95d617fd90dc6e066
Stats: 37 lines in 4 files changed: 36 ins; 0 del; 1 mod
8341833: incomplete snippet from loaded files from command line is ignored
Reviewed-by: liach, asotona
-------------
PR: https://git.openjdk.org/jdk/pull/22850
More information about the kulla-dev
mailing list