test/hotspot/jtreg/runtime/appcds/SignedJar.java
changeset 52514 f4e3900c8d08
parent 51990 6003e034cdd8
equal deleted inserted replaced
52513:d4f3e37d1fda 52514:f4e3900c8d08
    44 
    44 
    45         // Test class exists in signed JAR
    45         // Test class exists in signed JAR
    46         String signedJar = TestCommon.getTestJar("signed_hello.jar");
    46         String signedJar = TestCommon.getTestJar("signed_hello.jar");
    47         OutputAnalyzer output;
    47         OutputAnalyzer output;
    48         output = TestCommon.dump(signedJar, TestCommon.list("Hello"));
    48         output = TestCommon.dump(signedJar, TestCommon.list("Hello"));
    49         TestCommon.checkDump(output, "Preload Warning: Skipping Hello from signed JAR");
    49         TestCommon.checkDump(output, "Skipping Hello: Signed JAR");
    50 
    50 
    51         // At runtime, the Hello class should be loaded from the jar file
    51         // At runtime, the Hello class should be loaded from the jar file
    52         // instead of from the shared archive since a class from a signed
    52         // instead of from the shared archive since a class from a signed
    53         // jar shouldn't be dumped into the archive.
    53         // jar shouldn't be dumped into the archive.
    54         output = TestCommon.exec(signedJar, "-verbose:class", "Hello");
    54         output = TestCommon.exec(signedJar, "-verbose:class", "Hello");
    61         }
    61         }
    62 
    62 
    63         // Test class exists in both signed JAR and unsigned JAR
    63         // Test class exists in both signed JAR and unsigned JAR
    64         String jars = signedJar + System.getProperty("path.separator") + unsignedJar;
    64         String jars = signedJar + System.getProperty("path.separator") + unsignedJar;
    65         output = TestCommon.dump(jars, TestCommon.list("Hello"));
    65         output = TestCommon.dump(jars, TestCommon.list("Hello"));
    66         TestCommon.checkDump(output, "Preload Warning: Skipping Hello from signed JAR");
    66         TestCommon.checkDump(output, "Skipping Hello: Signed JAR");
    67     }
    67     }
    68 }
    68 }