RFR: 8315532: Compiler Implementation for Unnamed Variables and Patterns [v3]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Sep 28 09:49:28 UTC 2023


On Thu, 28 Sep 2023 08:38:27 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:

>> I agree. Also, this is not helped by the fact that in this particular message, the `_` does not appear in a variable declaration. Maybe we should use two distinct messages for when `_` is found as an "expression" (e.g. an identifier) and when it is used as a declaration _name_.
>
> @mcimadamore @lahodaj I attempted to do this split for non variables that do not allow underscore. I print the simple version of the error message. Is that what you meant Maurizio?
> 
> I also fixed the `UnderscoreAsIdent` adding the missing `--release 9`. It was the same omission as with other tests that @lahodaj pointed.

This looks much better!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15649#discussion_r1339840526


More information about the core-libs-dev mailing list