RFR: JDK-8308388: Update description of SourceVersion.RELEASE_21

Chen Liang liach at openjdk.org
Thu May 18 20:53:49 UTC 2023


On Thu, 18 May 2023 20:33:26 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Update description of SourceVersion.RELEASE_21 for the new language features (once they are pushed).

src/java.compiler/share/classes/javax/lang/model/SourceVersion.java line 76:

> 74:      *  21: pattern matching for switch and record patterns (string
> 75:      *      templates in preview, unnamed patterns and variables, unnamed
> 76:      *      classes and instance main methods in preview

Suggestion:

     *      classes and instance main methods in preview)

missing right parenthesis

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14051#discussion_r1198290931


More information about the compiler-dev mailing list