JDK-6464656 : reg test java/awt/Window/AlwaysOnTop/AutoTestOnTop.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-08-28
  • Updated: 2011-03-07
  • Resolved: 2011-03-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 7
7 b03Fixed
Related Reports
Relates :  
Relates :  
Description
The test java/awt/Window/AlwaysOnTop/AutoTestOnTop.java fails on XAWT with JDK6b95,
other builds not tested.

Log file attached

Comments
SUGGESTED FIX Added a comment explaining the reason of the failing.
22-09-2006

EVALUATION It looks like the toFront() method doesn't guarantee that the window will become the top-most window (though it becomes focused, i.e. the title-bar of the window becomes active). The spec of the method states: * Every attempt will be * made to move this Window as high as possible in the stacking order; * however, developers should not assume that this method will move this * Window above all other windows in every situation. This method is heavily used in this test assuming that the window will be moved above all other windows if there're no any always-on-top windows. :(
30-08-2006