JDK-8171909 : [PIT] on Windows, failure of java/awt/Dialog/DialogAboveFrame/DialogAboveFrameTest.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2016-12-22
  • Updated: 2017-11-29
  • Resolved: 2017-01-12
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 10 JDK 8 JDK 9
10Fixed 8u152Fixed 9 b154Fixed
Related Reports
Relates :  
Description
This regression test is to JDK-8169589 fix for a regression in CPU17_01. Apparently it does fix the issue on OS X (where reported) but doesn't on Windows. I have the test failing consistently on Windows 10.

RULE "java/awt/Dialog/DialogAboveFrame/DialogAboveFrameTest.java" Exception java.lang.RuntimeException: Test FAILED: Dialog is behind the frame
Comments
The problem reported under JDK-8169589 is OSX specific issue. It doesn't take place on Windows platform. There is a problem in the test. The test displays a frame and a dialog; then it checks the pixel's color to test whether the dialog is above the frame or not. It looks like drawing operation on Windows works a bit slowly than on OSX and the pixel doesn't have desired color when we examine it. Fix: The test should use Util.testPixelColor() from regtesthelpers package which is specially designed for asynchronous window manager.
10-01-2017