JDK-7032501 : JSR 292: Wrong VM options suggested in the warning message about method handles are disabled
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs21
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-03-30
  • Updated: 2014-07-17
  • Resolved: 2011-03-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
A number of vm/instr/invokevirtual tests failed during JCK-runtime 7 testing with JCK 7 b134 x64 on Windows XP x64 system with the message:

Java HotSpot(TM) 64-Bit Server VM warning: JSR 292 method handles are disabled in this JVM.  Use -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles to enable.
Failed with runtime exception: java.lang.UnsatisfiedLinkError: sun.dyn.MethodHandleNatives.getConstant(I)I

I tryed to start the test wiht the suggested VM options but tests failed with the same message.
I found out that the -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles options don't works since JDK 7 b123. More probably it is related with the fixes for CR 7001363 and CR 7001423 were integrated. 

Don't know should this options work or not. Any way it is wrong style to suggest anything that don't work. Need to either change the warning either make these options valid.

Comments
PUBLIC COMMENTS I always used -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles for my testing and it worked with every JDK 7 build. But since I'm about to commit 6817525 and finally turn on JSR 292 support by default, I suppose we can close this one as a duplicate of 6817525.
31-03-2011