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

JList addSelectionInterval(int, int) params < 0 get undoc'd behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.2.0
    • client-libs
    • None
    • beta2
    • sparc
    • solaris_2.6

      For JList addSelectionInterval, setSelectionInterval, removeSelectionInterval
      when params (anchor, lead) values are < 0 get different behavior.

      param (either one) = -1. The anchor and lead index are set to -1 if no list
       selection has been made or the index value of the last selected cell.

      param (either one) < -1. Get a java.lang.IndexOutOfBoundsException thrown.

            sharonz Sharon Zakhour (Inactive)
            mcolburnsunw Michael Colburn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: