Skip to content

Commit

Permalink
8267861: Update SourceVersion with new language features in 16 and 17
Browse files Browse the repository at this point in the history
Reviewed-by: jjg
  • Loading branch information
jddarcy committed Jun 2, 2021
1 parent cb7128b commit 00c7aee
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

1 comment on commit 00c7aee

@openjdk-notifier
Copy link

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.