hotspot/test/runtime/LocalLong/LocalLongTest.java
changeset 42307 cefc81dc1d52
parent 41082 a0ed7f3b6205
--- a/hotspot/test/runtime/LocalLong/LocalLongTest.java	Wed Nov 23 16:16:34 2016 +0000
+++ b/hotspot/test/runtime/LocalLong/LocalLongTest.java	Thu Dec 01 08:56:41 2016 +0000
@@ -39,6 +39,10 @@
     public static void main(String... args) throws Exception {
         if (Platform.is64bit()) {
             ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xint",
+                                                                      "--add-opens",
+                                                                      "java.base/java.lang=ALL-UNNAMED",
+                                                                      "--add-opens",
+                                                                      "java.base/java.lang.invoke=ALL-UNNAMED",
                                                                       "LocalLongHelper");
             OutputAnalyzer o = new OutputAnalyzer(pb.start());
             o.shouldHaveExitValue(0);