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

setScrollPosition should not throw exception when value is out of range

XMLWordPrintable

    • 1.1fcs
    • generic, sparc
    • solaris_2.5, solaris_10
    • Not verified

       * setScrollPosition() raises IllegalArgumentException if the position
      is not within range. A better behavior would be to quietly limit the
      values. There are two reasons. 1) if you want the exception you can
      test for it yourself. 2) if you don't want the exception you can
      avoid writing the limiting code yourself by letting the method do it
      for you. Now, you're forcing me to duplicate the same limit code
      that's in the method.

            gsaab Georges Saab
            amfowler Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: