-
Bug
-
Resolution: Fixed
-
P4
-
21, 23, 24
-
b26
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8346577 | 21.0.7 | Paul Hohensee | P4 | Resolved | Fixed | master |
On Japanese Windows platform (Windows Server2019), tools/jpackage/windows/Win8301247Test.java fails with the following stack:
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at jdk.jpackage.test.WindowsHelper.findAppLauncherPIDs(WindowsHelper.java:272)
at jdk.jpackage.test.WindowsHelper.killAppLauncherProcess(WindowsHelper.java:240)
at Win8301247Test.test(Win8301247Test.java:74)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
at jdk.jpackage.test.TKit.lambda$ignoreExceptions$0(TKit.java:144)
at jdk.jpackage.test.TKit.lambda$runTests$1(TKit.java:129)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
at jdk.jpackage.test.TKit.lambda$runTests$0(TKit.java:126)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:112)
at jdk.jpackage.test.TKit.runTests(TKit.java:125)
at jdk.jpackage.test.Main.runTests(Main.java:79)
at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:112)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1576)
java.lang.RuntimeException: 1 FAILED TEST
at jdk.jpackage.test.Main.reportSummary(Main.java:130)
at jdk.jpackage.test.Main.runTests(Main.java:90)
at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:112)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1576)
In Japanese environment, "No Instance (s) Available.".equals(output.getFirst().trim()) returns false because message is output in Japanese. This causes ArrayIndexOutOfBoundsException in subsequent line.
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at jdk.jpackage.test.WindowsHelper.findAppLauncherPIDs(WindowsHelper.java:272)
at jdk.jpackage.test.WindowsHelper.killAppLauncherProcess(WindowsHelper.java:240)
at Win8301247Test.test(Win8301247Test.java:74)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
at jdk.jpackage.test.TKit.lambda$ignoreExceptions$0(TKit.java:144)
at jdk.jpackage.test.TKit.lambda$runTests$1(TKit.java:129)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
at jdk.jpackage.test.TKit.lambda$runTests$0(TKit.java:126)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:112)
at jdk.jpackage.test.TKit.runTests(TKit.java:125)
at jdk.jpackage.test.Main.runTests(Main.java:79)
at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:112)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1576)
java.lang.RuntimeException: 1 FAILED TEST
at jdk.jpackage.test.Main.reportSummary(Main.java:130)
at jdk.jpackage.test.Main.runTests(Main.java:90)
at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:112)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1576)
In Japanese environment, "No Instance (s) Available.".equals(output.getFirst().trim()) returns false because message is output in Japanese. This causes ArrayIndexOutOfBoundsException in subsequent line.
- backported by
-
JDK-8346577 tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform
- Resolved
- links to
-
Commit(master) openjdk/jdk21u-dev/227c430b
-
Commit(master) openjdk/jdk/48e3b651
-
Review(master) openjdk/jdk21u-dev/1182
-
Review(master) openjdk/jdk/22142