JDK-6876061 : Following JCK5 test no working as exp-d on linux: awt-interactive-ComponentTests
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2009-08-26
  • Updated: 2012-03-22
  • Resolved: 2010-05-25
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
5.0u22 b03Fixed
Related Reports
Relates :  
Description
On Linux JCK5 test api/java_awt/interactive/ComponentTests.html#ComponentTests is not working as expected. Confirmed on linux with JDK5 GA and latest 5th.

The issue:

      - a window titled "Test 1" openend by the JCK-runtime-15a
test api/java_awt/interactive/ComponentTests.html#ComponentTests

      - A quit dialog titled "Quit Application?"

      - The quit dialog is supposed to be modal.

      - Issue: the quit dialog is not modal, because I am able to
        access its parent's menu (as you can see on the screen
shot).

Comments
EVALUATION To fix the problem in jdk5 we need to backport some changes from jdk6 (the changes that were committed as a part of the modality changes - 4080029). The fix affects XAWT code only (the XMenuBarPeer class, the handleJavaMouseEvent and the handleF10KeyPress handlers) and the fix is to block all events (except paint events) for menus that are in blocked windows.
12-10-2009

SUGGESTED FIX http://jpsesvr.sfbay.sun.com:8080/ctetools/html/ViewDetail.jsp?index=3193
12-10-2009

EVALUATION see comments.
08-10-2009