--- old/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java 2018-07-07 20:00:22.017001000 -0700 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java 2018-07-07 20:00:21.881001000 -0700 @@ -86,7 +86,7 @@ return instance; } - public static final Target MIN = Target.JDK1_6; + public static final Target MIN = Target.JDK1_7; private static final Target MAX = values()[values().length - 1]; @@ -127,32 +127,12 @@ 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() {