Either VM or jtreg tests need to be fixed. Starting from hs20 b06 (jdk7 b125), the tests
java/dyn/InvokeGenericTest.java
java/dyn/JavaDocExamplesTest.java
java/dyn/MethodHandlesTest.java
require -XX:+EnableInvokeDynamic instead of -XX:+EnableMethodHandles:
reason: User specified action: run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles test.java.dyn.InvokeGenericTest
elapsed time (seconds): 0.561
----------System.out:(1/157)----------
Java HotSpot(TM) Client VM warning: JSR 292 invokedynamic is disabled in this JVM. Use -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic to enable.
----------System.err:(23/1295)----------
java.lang.InternalError
at sun.dyn.MethodHandleNatives.init(Native Method)
at sun.dyn.DirectMethodHandle.<init>(DirectMethodHandle.java:48)
at sun.dyn.MethodHandleImpl.findMethod(MethodHandleImpl.java:183)
at java.dyn.MethodHandles$Lookup.findStatic(MethodHandles.java:392)
at sun.dyn.MethodHandleImpl.<clinit>(MethodHandleImpl.java:1207)
...
java/dyn/InvokeGenericTest.java
java/dyn/JavaDocExamplesTest.java
java/dyn/MethodHandlesTest.java
require -XX:+EnableInvokeDynamic instead of -XX:+EnableMethodHandles:
reason: User specified action: run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles test.java.dyn.InvokeGenericTest
elapsed time (seconds): 0.561
----------System.out:(1/157)----------
Java HotSpot(TM) Client VM warning: JSR 292 invokedynamic is disabled in this JVM. Use -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic to enable.
----------System.err:(23/1295)----------
java.lang.InternalError
at sun.dyn.MethodHandleNatives.init(Native Method)
at sun.dyn.DirectMethodHandle.<init>(DirectMethodHandle.java:48)
at sun.dyn.MethodHandleImpl.findMethod(MethodHandleImpl.java:183)
at java.dyn.MethodHandles$Lookup.findStatic(MethodHandles.java:392)
at sun.dyn.MethodHandleImpl.<clinit>(MethodHandleImpl.java:1207)
...
- duplicates
-
JDK-7010180 JSR 292 InvokeDynamicPrintArgs fails with: assert(_adapter == NULL) failed: init'd to NULL
- Closed