JDK-8156460 : [macosx] Test case javax/swing/JPopupMenu/6827786/bug6827786.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-05-06
  • Updated: 2019-02-01
  • Resolved: 2016-07-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 9
9 b130Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Test case javax/swing/JPopupMenu/6827786/bug6827786.java fails on OS X 10.10.5 with JDK 9. This issue is caused due to the regression of the fix for issue JDK-8151136.

Reproducible: Always 

Java Version:
java version "1.9.0-internal-debug"
Java(TM) SE Runtime Environment (build 1.9.0-internal-debug-mahalder_2015_11_27_15_27-b00)
Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-internal-debug-mahalder_2015_11_27_15_27-b00, mixed mode)

Exception Thrown:
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1323)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1298)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1440)
	at swinghello.bug6827786.verify(bug6827786.java:103)
	at swinghello.bug6827786.main(bug6827786.java:67)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
	at swinghello.bug6827786$4.run(bug6827786.java:111)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:759)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:712)
	at java.awt.EventQueue$3.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:729)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:192)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:106)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:102)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)



Comments
The reason for failure was the modifier value calculation was wrong. Added fix to correct it. Webrev link: http://cr.openjdk.java.net/~mhalder/8156460/webrev.01/
07-07-2016

RULE "javax/swing/JPopupMenu/6827786/bug6827786.java" Exception java.lang.ArrayIndexOutOfBoundsException: ...
02-06-2016