diff -r 825f23a4f262 -r e2722bd43f3a src/share/classes/com/sun/tools/javac/jvm/Target.java --- a/src/share/classes/com/sun/tools/javac/jvm/Target.java Thu Apr 16 11:23:02 2009 -0700 +++ b/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