src/share/classes/com/sun/tools/javac/jvm/Target.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 64,74 ****
/** JDK 6. */
JDK1_6("1.6", 50, 0),
/** JDK 7. */
! JDK1_7("1.7", 51, 0);
private static final Context.Key<Target> targetKey =
new Context.Key<Target>();
public static Target instance(Context context) {
--- 64,77 ----
/** JDK 6. */
JDK1_6("1.6", 50, 0),
/** JDK 7. */
! JDK1_7("1.7", 51, 0),
!
! /** JDK 8. */ // For now, a clone of 7
! JDK1_8("1.8", 51, 0);
private static final Context.Key<Target> targetKey =
new Context.Key<Target>();
public static Target instance(Context context) {
*** 97,106 ****
--- 100,110 ----
tab.put(t.name, t);
}
tab.put("5", JDK1_5);
tab.put("6", JDK1_6);
tab.put("7", JDK1_7);
+ tab.put("8", JDK1_8);
}
public final String name;
public final int majorVersion;
public final int minorVersion;
*** 108,118 ****
this.name = name;
this.majorVersion = majorVersion;
this.minorVersion = minorVersion;
}
! public static final Target DEFAULT = JDK1_7;
public static Target lookup(String name) {
return tab.get(name);
}
--- 112,122 ----
this.name = name;
this.majorVersion = majorVersion;
this.minorVersion = minorVersion;
}
! public static final Target DEFAULT = JDK1_8;
public static Target lookup(String name) {
return tab.get(name);
}