Integrated: 8309235: Unnamed Variables (_) can't be used in JShell
Aggelos Biboudis
abimpoudis at openjdk.org
Thu Jun 8 07:28:59 UTC 2023
On Tue, 6 Jun 2023 14:59:45 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> This PR addresses the issue of JShell not accepting unnamed local variables. This solution prints all local variables via the `/vars` command. e.g.,
>
>
> jshell> int _ = 42;
> ==> 42
>
> jshell> int _ = 43;
> ==> 43
>
> jshell> String _ = "44";
> ==> "44"
>
> jshell> /vars
> | int _ = 42
> | int _ = 43
> | String _ = "44"
This pull request has now been integrated.
Changeset: 79a4ac79
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
Committer: Adam Sotona <asotona at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/79a4ac791c826656b3e984fe54dc472c62efd028
Stats: 92 lines in 8 files changed: 77 ins; 1 del; 14 mod
8309235: Unnamed Variables (_) can't be used in JShell
Co-authored-by: Jan Lahoda <jlahoda at openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis at openjdk.org>
Reviewed-by: asotona
-------------
PR: https://git.openjdk.org/jdk/pull/14337
More information about the kulla-dev
mailing list