< prev index next >

langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java

Print this page

        

@@ -62,11 +62,13 @@
 
     /** JDK 9. */
     JDK1_9("1.9", 53, 0),
 
     /** JDK 10, initially an alias for 9 */
-    JDK1_10("1.10", 53, 0);
+    JDK1_10("1.10", 53, 0),
+
+    JDK_11("11", 54, 0);
 
     private static final Context.Key<Target> targetKey = new Context.Key<>();
 
     public static Target instance(Context context) {
         Target instance = context.get(targetKey);

@@ -93,10 +95,11 @@
         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);
+        tab.put("11", JDK_11);
     }
 
     public final String name;
     public final int majorVersion;
     public final int minorVersion;

@@ -104,11 +107,11 @@
         this.name = name;
         this.majorVersion = majorVersion;
         this.minorVersion = minorVersion;
     }
 
-    public static final Target DEFAULT = values()[values().length - 1];
+    public static final Target DEFAULT = JDK1_10; //values()[values().length - 1]; FIXME later!
 
     public static Target lookup(String name) {
         return tab.get(name);
     }
 
< prev index next >