RFR: 8302344: Compiler Implementation for Unnamed patterns and variables (Preview) [v13]

Joe Darcy darcy at openjdk.org
Thu May 4 21:06:23 UTC 2023


On Thu, 4 May 2023 17:48:28 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:

>> This PR implements [JEP 443](https://openjdk.org/jeps/443), the preview feature for Unnamed Patterns and Variables in Java.
>> 
>> Draft Spec: https://cr.openjdk.org/~abimpoudis/unnamed/latest/
>
> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add test

src/java.compiler/share/classes/javax/lang/model/util/Elements.java line 724:

> 722:     @PreviewFeature(feature=PreviewFeature.Feature.UNNAMED, reflective = true)
> 723:     default boolean isUnnamed(Element element) {
> 724:         return false;

Analogous suggestion to switch to "return element.getSimpleName().isEmpty();"

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13528#discussion_r1185512905


More information about the compiler-dev mailing list