From 426e9359df1fdeb770658a210cce57e873c81e36 Mon Sep 17 00:00:00 2001 From: Theresa Mammarella Date: Mon, 9 Dec 2024 21:41:21 -0500 Subject: [PATCH] Update SecurityManagerWarnings to match OpenJ9 stack trace Signed-off-by: Theresa Mammarella --- test/jdk/java/lang/System/SecurityManagerWarnings.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/jdk/java/lang/System/SecurityManagerWarnings.java b/test/jdk/java/lang/System/SecurityManagerWarnings.java index 5ae94ef824e..9d05a153752 100644 --- a/test/jdk/java/lang/System/SecurityManagerWarnings.java +++ b/test/jdk/java/lang/System/SecurityManagerWarnings.java @@ -20,6 +20,11 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ +/* + * =========================================================================== + * (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved + * =========================================================================== + */ /* * @test @@ -87,7 +92,7 @@ static void failEarlyTest(String prop, String cp) throws Exception { run(prop, cp) .shouldNotHaveExitValue(0) .shouldNotContain("SecurityManagerWarnings.main") - .shouldContain("at java.lang.System.initPhase3") + .shouldContain("at java/lang/System.initSecurityManager") .shouldContain("Error: A command line option has attempted to allow or enable the Security Manager."); }