JDK-8214923 : java/awt/Dialog/DialogAboveFrame: Dialog is behind the frame
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,9,10,11,12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2018-12-03
  • Updated: 2018-12-18
  • Resolved: 2018-12-18
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
tbdResolved
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
$ uname -a
Darwin unit-929.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)


A DESCRIPTION OF THE PROBLEM :
The test java/awt/Dialog/DialogAboveFrame/DialogAboveFrameTest.java  fails on MacOSX 10.14 with the message: "Test FAILED: Dialog is behind the frame"
The issue was also observed on Windows10, Kubuntu (KDE)

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jtreg -ignore:quiet -v -a -xml  -testjdk:/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home java/awt/Dialog/DialogAboveFrame/DialogAboveFrameTest.java

ACTUAL -
#section:main
----------messages:(5/202)----------
command: main DialogAboveFrameTest
reason: User specified action: run main DialogAboveFrameTest 
Mode: othervm
Additional options from @modules: --add-modules java.desktop
elapsed time (seconds): 2.244
----------configuration:(3/40)----------
Boot Layer
  add modules: java.desktop

----------System.out:(0/0)----------
----------System.err:(13/873)----------
java.lang.RuntimeException: Test FAILED: Dialog is behind the frame
	at DialogAboveFrameTest.main(DialogAboveFrameTest.java:73)
	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:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:834)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test FAILED: Dialog is behind the frame
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test FAILED: Dialog is behind the frame

---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk/jdk11/file/17b7d7034e8e/test/jdk/java/awt/Dialog/DialogAboveFrame/DialogAboveFrameTest.java
---------- END SOURCE ----------

FREQUENCY : always



Comments
The bug is in the robot.getPixelColor()
18-12-2018

Issue is also observed on JDK versions 8b132, 9b181, 10b43 as well as JDK12 internal build on Mac OS 10.13.6, but passing on Window 10 and Ubuntu 16.04 with JDK 12 internal build.
07-12-2018

The test java/awt/Dialog/DialogAboveFrame/DialogAboveFrameTest.java fails on MacOSX 10.14 with the message: "Test FAILED: Dialog is behind the frame" The issue was also observed on Windows10, Kubuntu (KDE) Checked with macOS 10.13.6 and JDK 11.0.1 and 12 and could confirm the failure with exception: java.lang.RuntimeException: Test FAILED: Dialog is behind the frame at DialogAboveFrameTest.main(DialogAboveFrameTest.java:73)
06-12-2018