JDK-8225105 : java/awt/Focus/ShowFrameCheckForegroundTest/ShowFrameCheckForegroundTest.java fails in Windows 10
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_10
  • CPU: x86
  • Submitted: 2019-05-31
  • Updated: 2021-04-26
  • Resolved: 2019-06-03
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 JDK 13 JDK 14 JDK 8
11.0.7-oracleFixed 13 b24Fixed 14Fixed 8u301Fixed
Description
----------System.out:(3/374)----------
Stage 1. Toplevel java.awt.Frame[frame0,400,200,136x62,layout=java.awt.BorderLayout,title=Frame,resizable,normal] - passed
Stage 1. Toplevel java.awt.Dialog[dialog0,400,200,136x62,layout=java.awt.BorderLayout,MODELESS,title=Owned Dialog] - passed
Stage 1. Toplevel java.awt.Dialog[dialog1,400,200,136x62,layout=java.awt.BorderLayout,MODELESS,title=Owned Dialog] - passed
----------System.err:(15/1433)----------
TestFailedException: Test failed: Stage 2. The toplevel java.awt.Frame[frame0,400,200,136x62,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal] wasn't made foreground on showing
	at ShowFrameCheckForegroundTest.test(ShowFrameCheckForegroundTest.java:111)
	at ShowFrameCheckForegroundTest.start(ShowFrameCheckForegroundTest.java:87)
	at ShowFrameCheckForegroundTest.main(ShowFrameCheckForegroundTest.java:59)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:830)
Comments
Fix request (11u) I would like to downport this for parity with 11.0.7-oracle. Applies clean.
08-12-2019

This test fails as soon as it hits second stage and button which needs to be pressed in nofocusframe is not visible. By adding appropriate waits for components this issue can be resolved.
31-05-2019