JDK-8163583 : [macosx] Press "To Back" button on the Dialog,the Dialog moves behind the Frame
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u102,9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-08-09
  • Updated: 2017-11-29
  • Resolved: 2016-08-16
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 8 JDK 9
8u102Fixed 9 b133Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Testsuite name:AWT function
Test name(s):AWT_TopLevels/TopLevelMiscellaneous/Manual/WindowToBackTests_05
Product(s) tested:JDK8u102b32(64bit)
OS/architecture: mac10.10-x64, mac10.11-x64

Reproducible: Always
Reproducible on machine:Evergreen-machine
[If Sometimes] Also reproducible on machine:

Is it a Regression: YES (test passes on 8u102b08 and 8u102b31)
[If Regression] Regression introduced in release/build: 8u102b32
Test result on the last GAed release for this train: 8u102b31
[if Fail] Test result on FCS: PASS

Is it a platform specific issue: YES
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing:  not new
[If new configuration testing] Issue specific to execution mode or OS/browser version: OS X 10.10, 10.11  (test PASSES on Win8.1)

Steps to reproduce:
1.Install stable jdk8u51b15(64bit) locate at /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk
2.Install base jdk8u102b31(64bit) locate at /Library/Java/JavaVirtualMachines/jdk1.8.0_102_b31.jdk
3.Install test jdk8u102b32(64bit) locate at /Library/Java/JavaVirtualMachines/jdk1.8.0_102_b32.jdk
4.Install awt worksoace locate at /var/root/Desktop/awt/ws
5.Install ute local at /var/root/Desktop/awt
6.Add attachment testlist.fail to /var/root/Desktop/awt
7.Create results at /var/root/Desktop/awt
8.Modify the test_awt.sh as:
/var/root/Desktop/awt/ute/ute run -harness tonga -env TONGA_MAIN_CLASS=Tonga -env KEYWORDS=manual -env BASEBUILD="/Library/Java/JavaVirtualMachines/jdk1.8.0_102_b31.jdk/Contents/Home" -env STABLE_JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home" -component awt -jdk "/Library/Java/JavaVirtualMachines/jdk1.8.0_102_b32.jdk/Contents/Home" -testbase /var/root/Desktop/awt/ws/awt/ -testlist /var/root/Desktop/awt/testlist.fail -results /var/root/Desktop/awt/results
9. Go to /var/root/awt and run the command : bash test_awt.sh
 
Case Instruction:
Note : Incase of Assertion failure user can enter any remarks by pressing 'Assertion Fail Remarks'.
1. After the Frame and Dialog are displayed
2. Press To Back button on Dialog.
3. If Dialog moves behind the frame then fail the test.else click assertion passed

Actual behavior:
Press "To Back" button on the Dialog,the Dialog moves behind the Frame,refer to back.jpg.
Comments
JDK8u102b33(64bit)/Mac10.11 x64 no this issue.
25-08-2016

RULE "AWT_Modality/Automated/FileDialog/DocumentModalDialog" ExitCode 1 RULE "AWT_Modality/Automated/FileDialog/NonModalDialog" ExitCode 1 RULE "AWT_Modality/Automated/ToFront/ModelessModalDialog" ExitCode 1 RULE "AWT_Modality/Automated/ToFront/NonModalDialog" ExitCode 1
16-08-2016

The problem was triggered by JDK-8080729
15-08-2016

Problem description: If toBack() method is invoked on dialog/frame which has not-null owner, the dialog/frame will be ordered below its owner/parent. Fix: The following methods in AWTWindow.m should be modified: - nativePushNSWindowToBack() add logic to perform a proper ordering for parent/child windows. - sendEvent() add logic to move parent windows to front and make sure that child windows are displayed above their nearest parents when the window is clicked by a mouse.
15-08-2016

testcase attached
12-08-2016