< prev index next >

src/java.compiler/share/classes/javax/lang/model/SourceVersion.java

Print this page

        

*** 57,66 **** --- 57,67 ---- * 1.8: lambda expressions and default methods * 9: modules, small cleanups to 1.7 and 1.8 changes * 10: local-variable type inference (var) * 11: local-variable syntax for lambda parameters * 12: TBD + * 13: TBD */ /** * The original version. *
*** 181,211 **** * 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. /** * Returns the latest source version that can be modeled. * * @return the latest source version that can be modeled */ public static SourceVersion latest() { ! return RELEASE_12; } private static final SourceVersion latestSupported = getLatestSupported(); private static SourceVersion getLatestSupported() { try { String specVersion = System.getProperty("java.specification.version"); switch (specVersion) { case "12": return RELEASE_12; case "11": return RELEASE_11; case "10": --- 182,222 ---- * The version recognized by the Java Platform, Standard Edition * 12. * * @since 12 */ ! RELEASE_12, ! ! /** ! * The version recognized by the Java Platform, Standard Edition ! * 13. ! * ! * @since 13 ! */ ! RELEASE_13; // Note that when adding constants for newer releases, the // behavior of latest() and latestSupported() must be updated too. /** * Returns the latest source version that can be modeled. * * @return the latest source version that can be modeled */ public static SourceVersion latest() { ! return RELEASE_13; } private static final SourceVersion latestSupported = getLatestSupported(); private static SourceVersion getLatestSupported() { try { String specVersion = System.getProperty("java.specification.version"); switch (specVersion) { + case "13": + return RELEASE_13; case "12": return RELEASE_12; case "11": return RELEASE_11; case "10":
< prev index next >