--- a/langtools/src/share/classes/com/sun/tools/javac/jvm/Target.java Wed Jul 05 16:51:35 2017 +0200
+++ b/langtools/src/share/classes/com/sun/tools/javac/jvm/Target.java Mon May 04 21:04:04 2009 -0700
@@ -253,6 +253,12 @@
return compareTo(JDK1_5) >= 0;
}
+ /** Does the VM support an invokedynamic instruction?
+ */
+ public boolean hasInvokedynamic() {
+ return compareTo(JDK1_7) >= 0;
+ }
+
/** Although we may not have support for class literals, should we
* avoid initializing the class that the literal refers to?
* See 4468823