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

JViewport.getView() invokes unnecessary exceptions

XMLWordPrintable

    • b32
    • generic, x86
    • generic, windows_xp

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: