JDK-8279538 : java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java fails with "Focus is lost!" on Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u311,11
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • Submitted: 2022-01-05
  • Updated: 2025-02-11
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.
JDK 11
11-pool-oracleUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java test consistently fails on Linux with "Focus is lost!" message.

Only the last variant of the test fails:
@run main/othervm -splash:splash1.png MultiResolutionSplashTest TEST_FOCUS


This bug could be duplicate of JDK-8134231. However, there could be something else: in 8u, Robot.waitForIdle() is not implemented as Toolkit.realSync(), so it could affect the test execution.

JDK-8233696 isn't backported to 8u, this is why there's no expected text in the failure message.
Comments
This is a test stabilization issue, and most likely it affects previous versions too. I haven't checked earlier versions. It looks like a test bug rather than a product one, therefore I added ‘testbug’ label.
17-01-2022