JDK-8011186 : [TEST_BUG] java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java failed on windows 8
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6,7u1,8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_8
  • CPU: generic
  • Submitted: 2013-04-01
  • Updated: 2016-09-23
  • Resolved: 2013-04-24
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 7 JDK 8
7u40Fixed 8 b89Fixed
Description
test java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java fails on windows 8 because window control buttons (minimize, maximize, close) wider than on other windows platform, robot click on minimize button instead of window header panel, test window losts focus and test fails

log out:
----------System.err:(13/882)----------
java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
	at OverrideRedirectWindowActivationTest.main(OverrideRedirectWindowActivationTest.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
Comments
Test fails for 1.6.0_105 b11 in Windows also Please check if backport is needed.
25-08-2015

Same test fails for 6u101b14 also . Please check if backport is needed.
15-06-2015

RULE java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest Exception java.lang.RuntimeException: Error: a frame couldn't be focused by click.
13-05-2015

same issue on windows 7 for 7u25: ----------System.out:(4/442)---------- sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on frame0 java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,74,35,51x23,label=fbutton] java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,74,35,51x23,label=fbutton] sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=null,oldState=0,newState=0] on frame0 ----------System.err:(13/849)---------- java.lang.RuntimeException: Error: a frame couldn't be focused by click. at OverrideRedirectWindowActivationTest.main(OverrideRedirectWindowActivationTest.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96) at java.lang.Thread.run(Thread.java:724) passed with classic windows theme
11-06-2013

Description says: "test java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java fails on windows 8 because window control buttons (minimize, maximize, close) wider than on other windows platform, robot click on minimize button instead of window header panel, test window losts focus and test fails" The width of test frames has been increased to make robot click on frame header. http://cr.openjdk.java.net/~kshefov/8011186/webrev.00/
22-04-2013

downgraded to P4 as a test bug
03-04-2013