equal
deleted
inserted
replaced
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 } |