• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Multi-Language VM
  3. Main
  4. JDK7TestExample

JDK7TestExample

  • Created by John Rose, last modified on Nov 12, 2010

Generally speaking, the JDK7 builds follow the JSR 292 portions of the mlvm patch repository. There is a delay of several weeks, due to engineering process.

Also, because JVM changes are usually pushed earlier than Java code changes, the contents of the JDK master repository tend to be updated after the contents of the JVM master repository.

There is a preview of the javadoc here:

http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/

There are also dated versions of this folder, under pres.

This javadoc corresponds to recent mlvm repository contents.

The javadoc folder also contain a preview of JAR files containing java.dyn and sun.dyn packages, plus corresponding "jtreg" unit tests:

  • http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/indy.jar
  • http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/indy-tests.jar

To run a unit tests, get a recent JVM build (mlvm or JDK7 download), download the above JAR files, and do something like this:

$JAVA7_HOME/bin/java \
  -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic \
  -Xbootclasspath/p:$INDY_JAVADOC_MLVM/indy.jar \
  -cp $INDY_JAVADOC_MLVM/indy-tests.jar:$JUNIT4_JAR \
  org.junit.runner.JUnitCore test.java.dyn.MethodHandlesTest

Sample output:

JUnit version 4.5
.IIIIII..............................
Time: 0.623
OK (30 tests)

For more output try this JVM argument:

$JAVA7_HOME/bin/java \
  -Dtest.java.dyn.MethodHandlesTest.verbosity=2 \
  -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic \
  ...
Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 204, "requestCorrelationId": "f59e859a3fb2e9f6"}