8298142: Update internal comment on language features in SourceVersion

Reviewed-by: sundar, jlahoda
This commit is contained in:
Joe Darcy 2022-12-06 16:55:12 +00:00
parent 203251ffc0
commit 0d2a9ee528
2 changed files with 9 additions and 5 deletions

View File

@ -69,6 +69,8 @@ public enum SourceVersion {
* 18: no changes (pattern matching for switch in second preview)
* 19: no changes (pattern matching for switch in third preview,
* record patterns in preview)
* 20: no changes (pattern matching for switch in fourth preview,
* record patterns in second preview)
*/
/**
@ -362,6 +364,8 @@ public enum SourceVersion {
* The version recognized by the Java Platform, Standard Edition
* 20.
*
* No major changes from the prior release.
*
* @since 20
*
* @see <a

View File

@ -105,27 +105,27 @@ public enum Source {
JDK15("15"),
/**
* 16, tbd
* 16, records and pattern matching for instanceof
*/
JDK16("16"),
/**
* 17, tbd
* 17, sealed classes, restoration of always-strict floating-point
*/
JDK17("17"),
/**
* 18, tbd
* 18, no major changes
*/
JDK18("18"),
/**
* 19, tbd
* 19, no major changes
*/
JDK19("19"),
/**
* 20, tbd
* 20, no major changes
*/
JDK20("20");