From 49a771a5c65f56ff10c56288d4d4d9bc8da0b7b3 Mon Sep 17 00:00:00 2001 From: Matias Saavedra Silva Date: Fri, 26 Jun 2026 14:47:32 -0400 Subject: [PATCH] 8380750: Test runtime/cds/appcds/TestSerialGCWithCDS.java#id1 failed: StringIndexOutOfBoundsException --- test/lib/jdk/test/lib/cds/CDSTestUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/jdk/test/lib/cds/CDSTestUtils.java b/test/lib/jdk/test/lib/cds/CDSTestUtils.java index 59e4a1bbbde56..8d292b2f7361b 100644 --- a/test/lib/jdk/test/lib/cds/CDSTestUtils.java +++ b/test/lib/jdk/test/lib/cds/CDSTestUtils.java @@ -703,7 +703,7 @@ public static OutputAnalyzer executeAndLog(Process process, String logName) thro static String getCrashMessage(String stdOut) { int start = stdOut.indexOf("# A fatal error has been detected by the Java Runtime Environment:"); - int end = stdOut.indexOf(".log", start) + 4; + int end = stdOut.indexOf("# If you would like to submit a bug report, please visit", start); return stdOut.substring(start, end); }