From 6871a2ff1207d3ee70973b1c4ee9bd09969c185b Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 27 Nov 2023 20:36:29 +0000 Subject: [PATCH] 8320803: Update SourceVersion.RELEASE_22 description for language changes Reviewed-by: jjg --- .../classes/javax/lang/model/SourceVersion.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java b/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java index fd905da80a5..ee041e215a3 100644 --- a/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java +++ b/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java @@ -74,7 +74,8 @@ public enum SourceVersion { * 21: pattern matching for switch and record patterns (string * templates in preview, unnamed patterns and variables in * preview, unnamed classes and instance main methods in preview) - * 22: tbd + * 22: Unnamed Variables & Patterns (Statements before super(...) + * in Preview) */ /** @@ -392,9 +393,9 @@ public enum SourceVersion { * href="https://docs.oracle.com/javase/specs/jls/se21/html/index.html"> * The Java Language Specification, Java SE 21 Edition * @see - * Record Patterns + * JEP 440: Record Patterns * @see - * Pattern Matching for switch + * JEP 441: Pattern Matching for switch */ RELEASE_21, @@ -402,11 +403,16 @@ public enum SourceVersion { * The version introduced by the Java Platform, Standard Edition * 22. * + * Additions in this release include unnamed variables and unnamed + * patterns. + * * @since 22 * * @see * The Java Language Specification, Java SE 22 Edition + * @see + * JEP 456: Unnamed Variables & Patterns */ RELEASE_22, ; // Reduce code churn when appending new constants