JDK-8134231 : [TEST_BUG] java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java fails with Focus lost message
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u60,9,10,15,16,17,18,19,22,23,24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2015-08-21
  • Updated: 2025-04-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
Failed fix of JDK-8086913


Comments
Here's a log file snippet from the jdk-24+11-1194-tier4 sighting: java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java #section:main ----------messages:(7/430)---------- command: main -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS reason: User specified action: run main/othervm -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS started: Thu Aug 15 15:24:41 GMT 2024 Mode: othervm [/othervm specified] Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.java2d=ALL-UNNAMED finished: Thu Aug 15 15:24:44 GMT 2024 elapsed time (seconds): 2.453 ----------configuration:(4/103)---------- Boot Layer add modules: java.desktop add exports: java.desktop/sun.java2d ALL-UNNAMED ----------System.out:(0/0)---------- ----------System.err:(12/768)---------- java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'AB'. at MultiResolutionSplashTest.testFocus(MultiResolutionSplashTest.java:146) at MultiResolutionSplashTest.main(MultiResolutionSplashTest.java:82) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:588) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1575) JavaTest Message: Test threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'AB'. JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'AB'. ----------rerun:(47/6560)*----------
15-08-2024

Here's a log file snippet for the jdk-22+19-1476-tier4 sighting: java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java #section:main ----------messages:(7/430)---------- command: main -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS reason: User specified action: run main/othervm -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS started: Wed Oct 11 20:39:27 UTC 2023 Mode: othervm [/othervm specified] Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.java2d=ALL-UNNAMED finished: Wed Oct 11 20:39:28 UTC 2023 elapsed time (seconds): 0.664 ----------configuration:(4/103)---------- Boot Layer add modules: java.desktop add exports: java.desktop/sun.java2d ALL-UNNAMED ----------System.out:(0/0)---------- ----------System.err:(12/765)---------- java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'b'. at MultiResolutionSplashTest.testFocus(MultiResolutionSplashTest.java:144) at MultiResolutionSplashTest.main(MultiResolutionSplashTest.java:82) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1570) JavaTest Message: Test threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'b'. JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'b'. ----------rerun:(48/6191)*----------
12-10-2023

Here's a log file snippet from the jdk-19+31-2203-tier4 sighting: java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java #section:main ----------messages:(5/358)---------- command: main -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS reason: User specified action: run main/othervm -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS Mode: othervm [/othervm specified] Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.java2d=ALL-UNNAMED elapsed time (seconds): 0.704 ----------configuration:(4/107)---------- Boot Layer add modules: java.desktop add exports: java.desktop/sun.java2d ALL-UNNAMED ----------System.out:(0/0)---------- ----------System.err:(12/785)---------- java.lang.RuntimeException: Focus is lost! Expected 'ab' got '123'. at MultiResolutionSplashTest.testFocus(MultiResolutionSplashTest.java:144) at MultiResolutionSplashTest.main(MultiResolutionSplashTest.java:82) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:1589) JavaTest Message: Test threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got '123'. JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got '123'. ----------rerun:(48/5200)*----------
14-07-2022

Here's a log file snippet from the jdk-16+26-1732-tier4 sighting: #section:main ----------messages:(5/358)---------- command: main -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS reason: User specified action: run main/othervm -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS Mode: othervm [/othervm specified] Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.java2d=ALL-UNNAMED elapsed time (seconds): 0.636 ----------configuration:(4/107)---------- Boot Layer add modules: java.desktop add exports: java.desktop/sun.java2d ALL-UNNAMED ----------System.out:(0/0)---------- ----------System.err:(14/970)---------- java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'AB'. at MultiResolutionSplashTest.testFocus(MultiResolutionSplashTest.java:144) at MultiResolutionSplashTest.main(MultiResolutionSplashTest.java:82) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:831) JavaTest Message: Test threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'AB'. JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'AB'. ----------rerun:(48/5112)*----------
01-12-2020

> java.lang.RuntimeException: Focus is lost! Expected 'ab' got 'AB'. This looks like the problem of some other test leaving CAPS LOCK on again. I thought we'd cured that. Looking at the logs for previous tasks on the system it had run some jck print tests - very fast - and prior to that the closed headful tests where one test failed closed/java/awt/Focus/KeyStrokeTest/KeyStrokeTest.html And as per https://bugs.openjdk.java.net/browse/JDK-8159592 that test is also sensitive to CAPS LOCK I think it is fine to try to avoid CAPS LOCK being left on but we could also make these tests that need it off, do a better job of making sure it is off.
18-10-2020

I get the same error on Windows 7 with JDK 10.
03-11-2017

Hi Sergei, Can u please specify in which OS and build this is failing ?? I have tried reproducing it on Linux for 8u65b09 and test has passed . Machine used : - spb23500.ru.oracle.com User/pass: gtee/Gt33acct
24-08-2015