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

Incorrect javadoc for java.awt.Scrollbar.setMinimum method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.4.0, 5.0
    • docs
    • tiger
    • generic, sparc
    • generic, solaris_2.6

      Name: dsR10051 Date: 11/22/2002


      Javadoc for method of class java.awt.Scrollbar
      public void setMinimum(int newMinimum)
      has typo. It says:

       * @(#)Scrollbar.java 1.95 02/06/17
      "...
           * <p>Note that setting the minimum value to <code>Integer.MIN_VALUE</code>
           * will result in the new minimum value to be set to
           * <code>Integer.MIN_VALUE - 1</code>.
       ...
          public void setMinimum(int newMinimum)
      "

      Integer.MIN_VALUE in this assertion must be amended to Integer.MAX_VALUE

      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            sdasunw Sda Sda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: