Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4962642

REGRESSION: JTabbedPane thorows ArrayIndexOutOfBoundsException

XMLWordPrintable

    • b43
    • x86, sparc
    • linux, linux_redhat_9.0, solaris_9, windows_xp
    • Verified

       Platform TurboLinux8.0
      JDK j2sdk1.5.0 b29
      Locale ja, C

      To reproduce;
       $ java JTabbedPaneTest
       On GUI, do as follows;
        View -> Placement -> Left (, Bottom, or Right)
        Test -> Auto

      Test programs are attached.

      Below is the output;

      --- insertTab()
      --- getTitleAt()
       [0] = tab_string
       [1] = create
       [2] = open
       [3] = save
       [4] = new_tab
       [5] = new_tab
       [6] = new_tab
       [7] = copy
       [8] = paste
       [9] = cut
      --- setTitleAt()
      --- indexOfTab()
      java.lang.ArrayIndexOutOfBoundsException: 9
              at javax.swing.plaf.basic.BasicTabbedPaneUI.tabForCoordinate(BasicTabbedPaneUI.java:1267)
              at javax.swing.plaf.basic.BasicTabbedPaneUI.setRolloverTab(BasicTabbedPaneUI.java:485)
              at javax.swing.plaf.basic.BasicTabbedPaneUI.access$1100(BasicTabbedPaneUI.java:35)
              at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mouseEntered(BasicTabbedPaneUI.java:3176)
              at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:241)
              at java.awt.Component.processMouseEvent(Component.java:5475)
              at javax.swing.JComponent.processMouseEvent(JComponent.java:3037)
              at java.awt.Component.processEvent(Component.java:5231)
              at java.awt.Container.processEvent(Container.java:1987)
              at java.awt.Component.dispatchEventImpl(Component.java:3929)
              at java.awt.Container.dispatchEventImpl(Container.java:2045)
              at java.awt.Component.dispatchEvent(Component.java:3777)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4196)
              at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:4027)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3884)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3832)
              at java.awt.Container.dispatchEventImpl(Container.java:2031)
              at java.awt.Window.dispatchEventImpl(Window.java:1749)
              at java.awt.Component.dispatchEvent(Component.java:3777)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:231)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


      I've tried this test on several releases in TurboLinux8 & RedHat9.0 to see in which releases the bug reproduces.
      Below are the results.
       Turbo 1.5.0_b29 fail
         1.5.0_b25 fail
        1.5.0_b24 ok
         1.4.2_FCS ok
       RedHat 1.5.0_b29 fail
         1.5.0_b25 fail
         1.5.0_b24 ok

      This bug is reproducible on both ja and C locale.


      ###@###.### 2003-12-03

            svioletsunw Scott Violet (Inactive)
            ogino Shinya Ogino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: