--- a/langtools/src/share/classes/com/sun/tools/javac/jvm/Target.java Tue Sep 07 17:31:54 2010 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/jvm/Target.java Tue Sep 07 17:32:27 2010 +0100
@@ -259,6 +259,14 @@
return compareTo(JDK1_7) >= 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();
+ }
+
/** Although we may not have support for class literals, should we
* avoid initializing the class that the literal refers to?
* See 4468823