JDK-7166296 : closed/java/awt/Frame/DisabledParentOfToplevel/DisabledParentOfToplevel.html failed since 1.8.0b36
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2012-05-03
  • Updated: 2014-10-09
  • Resolved: 2013-04-30
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.
8 b89Fixed
Related Reports
Relates :  
Relates :  
closed/java/awt/Frame/DisabledParentOfToplevel/DisabledParentOfToplevel.html failed since 1.8.0b36 on linux and solaris platforms

The failure caused by fix for CR 7097771.

Button which should be pressed by robot for test pass now is disabled. It should be enabled according CR 5062118 and shouldn't be enabled according CR 7097771?

see comments for more details

http://cr.openjdk.java.net/~serb/7166296/webrev.02 Our xawt implementation uses SunToolkit.getNativeContainer() method to take the native container of peer, but unfortunately this method return owner for top level window. The problem exists because on windows we actually use this method to take a parent(not a container). On macosx a workaround was added as the wrapper in the LWComponentPeer and LWWindowPeer. In the fix this workaround was removed, getNativeContainer() now returns null for top lvl window, and implementation on windows now intentionally uses owner when necessary.

EVALUATION SetEnable method now check status of all parent containers and windows. But only containers in the same window should be checked.