< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java

Print this page
rev 3444 : Only use IndyStringConcat for JDK >= 9


 118     /** Does the VM support an invokedynamic instruction?
 119      */
 120     public boolean hasInvokedynamic() {
 121         return compareTo(JDK1_7) >= 0;
 122     }
 123 
 124     /** Does the target JDK contains the java.util.Objects class?
 125      */
 126     public boolean hasObjects() {
 127         return compareTo(JDK1_7) >= 0;
 128     }
 129 
 130     /** Does the VM support polymorphic method handle invocation?
 131      *  Affects the linkage information output to the classfile.
 132      *  An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together.
 133      */
 134     public boolean hasMethodHandles() {
 135         return hasInvokedynamic();
 136     }
 137 






 138 }


 118     /** Does the VM support an invokedynamic instruction?
 119      */
 120     public boolean hasInvokedynamic() {
 121         return compareTo(JDK1_7) >= 0;
 122     }
 123 
 124     /** Does the target JDK contains the java.util.Objects class?
 125      */
 126     public boolean hasObjects() {
 127         return compareTo(JDK1_7) >= 0;
 128     }
 129 
 130     /** Does the VM support polymorphic method handle invocation?
 131      *  Affects the linkage information output to the classfile.
 132      *  An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together.
 133      */
 134     public boolean hasMethodHandles() {
 135         return hasInvokedynamic();
 136     }
 137 
 138     /** Does the target JDK contain StringConcatFactory class?
 139      */
 140     public boolean hasStringConcatFactory() {
 141         return compareTo(JDK1_9) >= 0;
 142     }
 143 
 144 }
< prev index next >