-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
7
-
None
-
generic
-
generic
The test fails on MS Windows Vista with JDK 7 (~b70+) with the following output:
----------System.out:(3/151)----------
Test started
+++++++++++++++++ Test under javax.swing.plaf.metal.MetalLookAndFeel +++++++++++++++++
=============== First menu ====================
----------System.err:(46/3002)----------
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1034)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1346)
at bug6458123.main(bug6458123.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:617)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:717)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:694)
at sun.swing.SwingUtilities2.getLeftSideBearing(SwingUtilities2.java:248)
at sun.swing.MenuItemLayoutHelper.getLeftExtraWidth(MenuItemLayoutHelper.java:162)
at sun.swing.MenuItemLayoutHelper.calcExtraWidths(MenuItemLayoutHelper.java:158)
at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:148)
at sun.swing.MenuItemLayoutHelper.<init>(MenuItemLayoutHelper.java:107)
at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize(BasicMenuItemUI.java:408)
at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:363)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1660)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483)
at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:300)
at javax.swing.plaf.basic.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:60)
at java.awt.Container.preferredSize(Container.java:1682)
at java.awt.Container.getPreferredSize(Container.java:1667)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1662)
at javax.swing.JPopupMenu.adjustPopupLocationToFitScreen(JPopupMenu.java:344)
at javax.swing.JPopupMenu.getPopup(JPopupMenu.java:832)
at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:789)
at bug6458123.testMenu(bug6458123.java:87)
at bug6458123.test(bug6458123.java:67)
at bug6458123.access$000(bug6458123.java:22)
at bug6458123$1.run(bug6458123.java:55)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:225)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
----------System.out:(3/151)----------
Test started
+++++++++++++++++ Test under javax.swing.plaf.metal.MetalLookAndFeel +++++++++++++++++
=============== First menu ====================
----------System.err:(46/3002)----------
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1034)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1346)
at bug6458123.main(bug6458123.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:617)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:717)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:694)
at sun.swing.SwingUtilities2.getLeftSideBearing(SwingUtilities2.java:248)
at sun.swing.MenuItemLayoutHelper.getLeftExtraWidth(MenuItemLayoutHelper.java:162)
at sun.swing.MenuItemLayoutHelper.calcExtraWidths(MenuItemLayoutHelper.java:158)
at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:148)
at sun.swing.MenuItemLayoutHelper.<init>(MenuItemLayoutHelper.java:107)
at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize(BasicMenuItemUI.java:408)
at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:363)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1660)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483)
at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:300)
at javax.swing.plaf.basic.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:60)
at java.awt.Container.preferredSize(Container.java:1682)
at java.awt.Container.getPreferredSize(Container.java:1667)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1662)
at javax.swing.JPopupMenu.adjustPopupLocationToFitScreen(JPopupMenu.java:344)
at javax.swing.JPopupMenu.getPopup(JPopupMenu.java:832)
at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:789)
at bug6458123.testMenu(bug6458123.java:87)
at bug6458123.test(bug6458123.java:67)
at bug6458123.access$000(bug6458123.java:22)
at bug6458123$1.run(bug6458123.java:55)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:225)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
- duplicates
-
JDK-6885752 closed/javax/swing/JRootPane/4627806/bug4627806.java fails
- Closed