--- old/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java 2018-06-27 14:20:33.090003999 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java 2018-06-27 14:20:32.962003999 -0700 @@ -171,7 +171,15 @@ * * @since 11 */ - RELEASE_11; + RELEASE_11, + + /** + * The version recognized by the Java Platform, Standard Edition + * 12. + * + * @since 12 + */ + RELEASE_12; // Note that when adding constants for newer releases, the // behavior of latest() and latestSupported() must be updated too. @@ -182,7 +190,7 @@ * @return the latest source version that can be modeled */ public static SourceVersion latest() { - return RELEASE_11; + return RELEASE_12; } private static final SourceVersion latestSupported = getLatestSupported(); @@ -192,6 +200,8 @@ String specVersion = System.getProperty("java.specification.version"); switch (specVersion) { + case "12": + return RELEASE_12; case "11": return RELEASE_11; case "10":