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

Updating 1.4.1_b08 BasicTabbedPaneUI leads to ArrayOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.1
    • client-libs
    • None

      There is not initialized htmlViews field in BasicTabbePaneUI when the UI is installed to non-empty JTabbedPane, i.e. it contains already some components. Then the htmlViews Vector is empty, consequently when removing the component from the JTabbedPaen, ContainerHandler listens on the container events and tries to remove the component from htmlViews too.
       It leads to ArrayOutOfBoundsException, the returned component index is -1, what is not chceked in the row 3136 (BasicTabbedPaneUI).

      I don't know what is the exact intention, wheteher there should be added the checkl or the components should be added to the htmlViews when the UI is set to JTabbedPane.

      I hope test case is not neceessary, it should be clear from the code.

            joutwatesunw Joshua Outwater (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: