Skip to content

Commit be81ccd

Browse files
authored
Merge pull request #1 from theresa-m/secmanager_test_j9
Update SecurityManagerWarnings to match OpenJ9 stack trace
2 parents 2498f8e + 426e935 commit be81ccd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/jdk/java/lang/System/SecurityManagerWarnings.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23+
/*
24+
* ===========================================================================
25+
* (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved
26+
* ===========================================================================
27+
*/
2328

2429
/*
2530
* @test
@@ -87,7 +92,7 @@ static void failEarlyTest(String prop, String cp) throws Exception {
8792
run(prop, cp)
8893
.shouldNotHaveExitValue(0)
8994
.shouldNotContain("SecurityManagerWarnings.main")
90-
.shouldContain("at java.lang.System.initPhase3")
95+
.shouldContain("at java/lang/System.initSecurityManager")
9196
.shouldContain("Error: A command line option has attempted to allow or enable the Security Manager.");
9297
}
9398

0 commit comments

Comments
 (0)