< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java
Print this page
*** 84,94 ****
context.put(targetKey, instance);
}
return instance;
}
! public static final Target MIN = Target.JDK1_6;
private static final Target MAX = values()[values().length - 1];
private static final Map<String,Target> tab = new HashMap<>();
static {
--- 84,94 ----
context.put(targetKey, instance);
}
return instance;
}
! public static final Target MIN = Target.JDK1_7;
private static final Target MAX = values()[values().length - 1];
private static final Map<String,Target> tab = new HashMap<>();
static {
*** 125,160 ****
*/
public char syntheticNameChar() {
return '$';
}
- /** Does the VM support an invokedynamic instruction?
- */
- public boolean hasInvokedynamic() {
- return compareTo(JDK1_7) >= 0;
- }
-
- /** Does the target JDK contains the java.util.Objects class?
- */
- public boolean hasObjects() {
- return compareTo(JDK1_7) >= 0;
- }
-
/** Does the target VM expect MethodParameters attributes?
*/
public boolean hasMethodParameters() {
return compareTo(JDK1_8) >= 0;
}
- /** Does the VM support polymorphic method handle invocation?
- * Affects the linkage information output to the classfile.
- * An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together.
- */
- public boolean hasMethodHandles() {
- return hasInvokedynamic();
- }
-
/** Does the target JDK contain StringConcatFactory class?
*/
public boolean hasStringConcatFactory() {
return compareTo(JDK1_9) >= 0;
}
--- 125,140 ----
< prev index next >