test/hotspot/jtreg/runtime/InvocationTests/invokevirtualTests.java
changeset 58312 ce960527ecee
parent 55497 d3a33953b936
child 58679 9c3209ff7550
equal deleted inserted replaced
58311:88fce7eea1f6 58312:ce960527ecee
    45 
    45 
    46     public static void runTest(String classFileVersion, String option) throws Exception {
    46     public static void runTest(String classFileVersion, String option) throws Exception {
    47         System.out.println("\ninvokevirtual invocation tests, option: " + option +
    47         System.out.println("\ninvokevirtual invocation tests, option: " + option +
    48                            ", class file version: " + classFileVersion);
    48                            ", class file version: " + classFileVersion);
    49         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
    49         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
       
    50             "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED",
    50             "invokevirtual.Generator", "--classfile_version=" + classFileVersion);
    51             "invokevirtual.Generator", "--classfile_version=" + classFileVersion);
    51         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    52         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    52         try {
    53         try {
    53             output.shouldContain("EXECUTION STATUS: PASSED");
    54             output.shouldContain("EXECUTION STATUS: PASSED");
    54             output.shouldHaveExitValue(0);
    55             output.shouldHaveExitValue(0);