< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java
Print this page
*** 59,69 ****
/** JDK 8. */
JDK1_8("1.8", 52, 0),
/** JDK 9. */
! JDK1_9("1.9", 53, 0);
private static final Context.Key<Target> targetKey = new Context.Key<>();
public static Target instance(Context context) {
Target instance = context.get(targetKey);
--- 59,72 ----
/** JDK 8. */
JDK1_8("1.8", 52, 0),
/** JDK 9. */
! JDK1_9("1.9", 53, 0),
!
! /** JDK 10, initially an alias for 9 */
! JDK1_10("1.10", 53, 0);
private static final Context.Key<Target> targetKey = new Context.Key<>();
public static Target instance(Context context) {
Target instance = context.get(targetKey);
*** 89,98 ****
--- 92,102 ----
tab.put("5", JDK1_5);
tab.put("6", JDK1_6);
tab.put("7", JDK1_7);
tab.put("8", JDK1_8);
tab.put("9", JDK1_9);
+ tab.put("10", JDK1_10);
}
public final String name;
public final int majorVersion;
public final int minorVersion;
*** 100,110 ****
this.name = name;
this.majorVersion = majorVersion;
this.minorVersion = minorVersion;
}
! public static final Target DEFAULT = JDK1_9;
public static Target lookup(String name) {
return tab.get(name);
}
--- 104,114 ----
this.name = name;
this.majorVersion = majorVersion;
this.minorVersion = minorVersion;
}
! public static final Target DEFAULT = values()[values().length - 1];
public static Target lookup(String name) {
return tab.get(name);
}
< prev index next >