langtools/src/share/classes/com/sun/tools/javac/jvm/Target.java
changeset 6592 dc56420a69bc
parent 5847 1908176fd6e3
child 6721 d92073844278
--- 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