United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6876061 Following JCK5 test no working as exp-d on linux: awt-interactive-ComponentTests
6876061 : Following JCK5 test no working as exp-d on linux: awt-interactive-ComponentTests

Details
Type:
Bug
Submit Date:
2009-08-26
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2010-05-25
Component:
client-libs
OS:
linux
Sub-Component:
java.awt
CPU:
x86
Priority:
P1
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0u22

Related Reports
Relates:

Sub Tasks

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.
                                     
2009-10-12
SUGGESTED FIX

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

see comments.
                                     
2009-10-08



Hardware and Software, Engineered to Work Together