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

JViewport.getView() invokes unnecessary exceptions

    XMLWordPrintable

Details

    • b32
    • generic, x86
    • generic, windows_xp

    Description

      When JScrollPane.setRowHeaderView() is first invoked, it causes BasicScrollPaneUI.updateRowHeader to call JViewport.getViewPosition() when no view has yet been set. JViewport.getView() calls getComponent(0), causing Component.getComponent() to throw an ArrayIndexOutOfBoundsException, which getView catches. Exceptions are expensive, and should be reserved for unusual occurrences.
      ###@###.### 2005-03-22 22:22:47 GMT

      Attachments

        Issue Links

          Activity

            People

              shickeysunw Shannon Hickey (Inactive)
              tballsunw Tom Ball (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: