After I successfully bsd-port build (and after I see if java can start and display it's version number) I first run the jdk/test/java/lang/String tests with jtreg as a second-level smoketest:
$ jtreg -jdk:build/bsd-amd64/j2sdk-image -v:summary jdk/test/java/lang/String These all pass. But there appear to be errors running the jdk/test/java/lang/invoke/ tests. Some of them add -XX:+EnableInvokeDynamic when run but this is no longer a valid option. $ jtreg -XX:+UnlockExperimentalVMOptions -jdk:build/bsd-amd64/j2sdk-image -v:summary jdk/test/java/lang/invoke/ Directory "JTwork" not found: creating Directory "JTwork/scratch" not found: creating FAILED: java/lang/invoke/6987555/Test6987555.java FAILED: java/lang/invoke/6991596/Test6991596.java Passed: java/lang/invoke/ClassValueTest.java FAILED: java/lang/invoke/InvokeDynamicPrintArgs.java Passed: java/lang/invoke/InvokeGenericTest.java Passed: java/lang/invoke/JavaDocExamplesTest.java Passed: java/lang/invoke/MethodHandlesTest.java Passed: java/lang/invoke/MethodTypeTest.java Test results: passed: 5; failed: 3 Report written to JTreport/html/report.html Results written to /Users/stephen/dev/java/src/bsd/JTwork Here's a bit of the detail for: InvokeDynamicPrintArgs.java command: main -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic indify.Indify --verify-specifier-count=3 --transitionalJSR292=false --expand-properties --classpath ${test.classes} --java test.java.lang.invoke.InvokeDynamicPrintArgs --check-output reason: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic indify.Indify --verify-specifier-count=3 --transitionalJSR292=false --expand-properties --classpath ${test.classes} --java test.java.lang.invoke.InvokeDynamicPrintArgs --check-output elapsed time (seconds): 0.01 ----------System.out:(0/0)---------- ----------System.err:(3/154)---------- Unrecognized VM option '+EnableInvokeDynamic' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.