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

spec for java.awt.Scrollbar.setValues() unclear

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.5



      Name: dsC58869 Date: 05/29/98



      The spec for method
      java.awt.Scrollbar.setValues(int value, int visible, int minimum, int maximum)
      unclear. It says:

          /**
           * Sets the values of four properties for this scroll bar.
           * <p>
           * This method simultaneously and synchronously sets the values
           * of four scroll bar properties, assuring that the values of
           * these properties are mutually consistent. It enforces the
      ^^^^^^^^^^^^^^^
           * constraints that maximum cannot be less than minimum, and that
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           * value cannot be less than the minimum or greater than the maximum.
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      But it does not specify *how* it enforces the constraints.

      See also #4070498

      ======================================================================
       Justification:
      Specification unclear, should be fixed for JCK testing.

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

            sharonz Sharon Zakhour (Inactive)
            dsilaev Dmitri Silaev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: