JDK-8196019 : java/awt/Window/Grab/GrabTest.java fails on Windows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9,10,11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-01-23
  • Updated: 2021-04-23
  • Resolved: 2020-04-07
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 15 JDK 8
11.0.8-oracleFixed 13.0.4Fixed 15 b19Fixed 8u301Fixed
Description
Windows 7, JDK 10 ..

----------System.out:(9/995)----------
java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Press,when=1516327884547,modifiers=Ctrl+Alt+Shift] on button0
java.awt.event.MouseEvent[MOUSE_PRESSED,(100,100),absolute(500,200),button=1,modifiers=Alt+Ctrl+Shift+Button1+Button2,extModifiers=Ctrl+Alt+Shift+Button1,clickCount=1] on win0
java.awt.event.MouseEvent[MOUSE_PRESSED,(150,150),absolute(150,150),button=1,modifiers=Alt+Ctrl+Shift+Button1+Button2,extModifiers=Ctrl+Alt+Shift+Button1,clickCount=1] on frame0
sun.awt.UngrabEvent[java.awt.Window[win0,400,100,200x200,layout=java.awt.FlowLayout]]
sun.awt.UngrabEvent[java.awt.Window[win0,400,100,200x200,layout=java.awt.FlowLayout]]
sun.awt.UngrabEvent[java.awt.Window[win0,400,100,200x200,layout=java.awt.FlowLayout]]
sun.awt.UngrabEvent[java.awt.Window[win0,400,100,200x200,layout=java.awt.FlowLayout]]
sun.awt.UngrabEvent[java.awt.Window[win0,400,100,200x200,layout=java.awt.FlowLayout]]
sun.awt.UngrabEvent[java.awt.Window[win1,0,0,100x100,invalid,layout=java.awt.BorderLayout]]
----------System.err:(15/884)----------
Failure: [4] Press inside of Frame's title didn't cause ungrab
java.lang.RuntimeException: Test failed.
	at GrabTest.test(GrabTest.java:233)
	at GrabTest.main(GrabTest.java:123)
	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:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:844)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed.
Comments
Fix request (13u) Requesting backport to 13u for parity with 11u, applies cleanly.
09-06-2020

jdk11 backport request I would like to have the patch in OpenJDK11 as well (reason is parity to 11.0.8_oracle). The patch applies cleanly with the exception of the change to test/jdk/ProblemList.txt where the line removal needs to be confirmed (seems there are changes in the stride).
29-04-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/e1910de73600 User: psadhukhan Date: 2020-04-11 05:04:11 +0000
11-04-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/e1910de73600 User: serb Date: 2020-04-07 04:23:47 +0000
07-04-2020

This test may click on the dock on macOS and run an external application.
06-04-2020

Not able to reproduce on Windows 10 x64 with JDK-11-178(nightly)
08-05-2018

Not able to reproduce this issue on Windows 7 x64 with JDK 10-ea-41.
02-02-2018