Skip to content

Commit d77a410

Browse files
committed
8308388: Update description of SourceVersion.RELEASE_21
Reviewed-by: iris
1 parent 3f4cfbd commit d77a410

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/java.compiler/share/classes/javax/lang/model/SourceVersion.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public enum SourceVersion {
7171
* record patterns in preview)
7272
* 20: no changes (pattern matching for switch in fourth preview,
7373
* record patterns in second preview)
74-
* 21: tbd
74+
* 21: pattern matching for switch and record patterns (string
75+
* templates in preview, unnamed patterns and variables in
76+
* preview, unnamed classes and instance main methods in preview)
7577
*/
7678

7779
/**
@@ -384,6 +386,10 @@ public enum SourceVersion {
384386
* @see <a
385387
* href="https://docs.oracle.com/javase/specs/jls/se21/html/index.html">
386388
* <cite>The Java Language Specification, Java SE 21 Edition</cite></a>
389+
* @see <a href="https://openjdk.org/jeps/440">
390+
* Record Patterns</a>
391+
* @see <a href="https://openjdk.org/jeps/441">
392+
* Pattern Matching for switch</a>
387393
*/
388394
RELEASE_21;
389395

0 commit comments

Comments
 (0)