Skip to content
Permalink
Browse files
8267861: Update SourceVersion with new language features in 16 and 17
Reviewed-by: jjg
  • Loading branch information
jddarcy committed Jun 2, 2021
1 parent cb7128b commit 00c7aeee005f08689d0647b460eb55b6a5385f72
Showing 1 changed file with 6 additions and 0 deletions.
@@ -221,6 +221,9 @@ public enum SourceVersion {
* The version recognized by the Java Platform, Standard Edition
* 16.
*
* Additions in this release include pattern matching for {@code
* instanceof} and records.
*
* @since 16
*/
RELEASE_16,
@@ -229,6 +232,9 @@ public enum SourceVersion {
* The version recognized by the Java Platform, Standard Edition
* 17.
*
* Additions in this release include sealed classes and
* restoration of always-strict floating-point semantics.
*
* @since 17
*/
RELEASE_17;

1 comment on commit 00c7aee

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 00c7aee Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.