VM and JDK classes aren't aligned

Rémi Forax forax at univ-mlv.fr
Sun May 23 03:44:26 PDT 2010


Le 23/05/2010 04:29, John Rose a écrit :
> I recently committed to JDK7 a bundle of coordinated changes to the JDK and JVM.  It looks like we failed to promote, in jdk7-b92, the JDK changes that go with the most recent JVM changes.  These JVM changes are in hs19-b01.
>
> The JDK changes will catch up in jdk7-b93.
>
> (Reminder:  This mismatch only affects people who use UnlockExperimentalVMOptions and EnableInvokeDynamic or EnableMethodHandles.)
>    

In fact only UnlockExperimentalVMOptions and EnableInvokeDynamic fails,
method handles seems to work :)
> For now, please grab this file and prepend it onto your BCP:
>    http://blogs.sun.com/jrose/resource/jsr292/hs19-b01-jsr292-patch.jar
>
> Here's the option, of course:
>    -Xbootclasspath/p:$DOWNLOADS/hs19-b01-jsr292-patch.jar
>
> Current unit tests are in this file:
>    http://blogs.sun.com/jrose/resource/jsr292/hs19-b01-jsr292-tests.jar
>
> It requires a recent version of JUnit (4.5 or better):
>    http://www.junit.org/node/401
>
> Here's the complete command line:
>    $JAVA7_HOME/bin/java} \
>    -XX:+{UnlockExperimentalVMOptions,EnableInvokeDynamic} \
>    -Xbootclasspath/p:$DOWNLOADS/hs19-b01-jsr292-patch.jar \
>    -cp $$DOWNLOADS/hs19-b01-jsr292-tests.jar:$DOWNLOADS/junit-4.5.jar \
>       org.junit.runner.JUnitCore test.java.dyn.MethodHandlesTest
>
> Sorry for the trouble.  Please let me know if this works.
>    

It works :)

> -- John
>    

Rémi


More information about the mlvm-dev mailing list