Integrated: 8315588: JShell does not accept underscore from JEP 443 even with --enable-preview
Aggelos Biboudis
abimpoudis at openjdk.org
Tue Oct 17 13:00:15 UTC 2023
On Fri, 15 Sep 2023 15:31:43 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> The current status is that we get an `UNKNOWN` status for those incomplete snippets that involve underscore declaring local variables or patterns. Those should have been classified as `DEFINITELY_INCOMPLETE`. This process takes place in `SourceCodeAnalysisImpl` and `CompletenessAnalyzer` and the processing that takes place regarded `_` as a location of kind `XERR0`. It would be correct now to classify it with `XDECL1`”.
This pull request has now been integrated.
Changeset: 2bf1863e
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
Committer: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2bf1863e24c8842e3ddbdacda54e412023951983
Stats: 80 lines in 2 files changed: 78 ins; 0 del; 2 mod
8315588: JShell does not accept underscore from JEP 443 even with --enable-preview
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/15765
More information about the kulla-dev
mailing list