--- old/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java 2020-05-28 13:33:44.855001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java 2020-05-28 13:33:44.591001000 -0700 @@ -215,7 +215,15 @@ * * @since 15 */ - RELEASE_15; + RELEASE_15, + + /** + * The version recognized by the Java Platform, Standard Edition + * 16. + * + * @since 16 + */ + RELEASE_16; // Note that when adding constants for newer releases, the // behavior of latest() and latestSupported() must be updated too. @@ -226,7 +234,7 @@ * @return the latest source version that can be modeled */ public static SourceVersion latest() { - return RELEASE_15; + return RELEASE_16; } private static final SourceVersion latestSupported = getLatestSupported(); @@ -241,7 +249,7 @@ private static SourceVersion getLatestSupported() { int intVersion = Runtime.version().feature(); return (intVersion >= 11) ? - valueOf("RELEASE_" + Math.min(15, intVersion)): + valueOf("RELEASE_" + Math.min(16, intVersion)): RELEASE_10; }