RFR: 8315588: JShell does not accept underscore from JEP 443 even with --enable-preview
Jan Lahoda
jlahoda at openjdk.org
Mon Oct 2 15:23:11 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`”.
Looks sensible.
-------------
Marked as reviewed by jlahoda (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/15765#pullrequestreview-1652974201
More information about the kulla-dev
mailing list