Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6653830
Votes 0
Synopsis javax/swing/JPopupMenu/4634626/bug4634626.java fails
Category java:classes_swing
Reported Against b31
Release Fixed 6u10(b31)
State 11-Closed, Verified, bug
Priority: 3-Medium
Related Bugs 4634626 , 6217905
Submit Date 22-JAN-2008
Description
JDK		    : Fails:  6u10 b10
                      Passes: 6u05 b10

Platform Tested     : SuSE 10
		      
Failing Test [s]    : javax/swing/JPopupMenu/4634626/bug4634626.java


    Test output:
    ============
----------System.err:(24/2879)----------
java.lang.Error: The event got thru the component with popup: java.awt.event.MouseEvent[MOUSE_PRESSED,(88,12),absolute(143,409),button=3,modifiers=Meta+Button3,extModifiers=Button3,clickCount=1] on javax.swing.JButton[,0,325,176x25,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$  xxxxx@xxxxx  ,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Button with the popup,defaultCapable=true]
	at bug4634626$MouseWatcher.mousePressed(bug4634626.java:38)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
	at java.awt.Component.processMouseEvent(Component.java:6091)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5859)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4466)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4296)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2443)
	at java.awt.Component.dispatchEvent(Component.java:4296)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
STATUS:Failed.Applet thread threw exception: java.lang.Error: The event got thru the component with popup: java.awt.event.MouseEvent[MOUSE_PRESSED,(88,12),absolute(143,409),button=3,modifiers=Meta+Button3,extModifiers=Button3,clickCount=1] on javax.swing.JButton[,0,325,176x25,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$  xxxxx@xxxxx  ,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Button with the popup,defaultCapable=true]
result: Failed. Execution failed: Applet thread threw exception: java.lang.Error: The event got thru the component with popup: java.awt.event.MouseEvent[MOUSE_PRESSED,(88,12),absolute(143,409),button=3,modifiers=Meta+Button3,extModifiers=Button3,clickCount=1] on javax.swing.JButton[,0,325,176x25,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$  xxxxx@xxxxx  ,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Button with the popup,defaultCapable=true]
Posted Date : 2008-01-22 23:42:51.0
Work Around
N/A
Evaluation
I cannot reproduce the problem on Windows XP with any JDK version. However, when I tried the test on Linux, it failed right away.
OS: Linux SuSe 10.3
JDK: 7b19
Posted Date : 2008-05-30 12:41:01.0

It is not a regression. The test case is only affected. A fix will not change product binaries.
The problem is in the test itself. The test shows and closes several popup menus in a row. The "close" operation is performed with a pressing of the ENTER key. However, after the fix for 6217905, there is not any selected menu item in the menu and the ENTER key pressing cannot close the menu. This fact breaks the normal test flow.

A fix idea is simple. We should close the menus in a valid way. For example, the ESC key can be used instead of the ENTER key.

It is interesting that on Windows platforms the test doesn't fail.
Posted Date : 2008-07-29 14:40:27.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang