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

Error in documentation of AbstractSpinnerModel

XMLWordPrintable

    • b80
    • x86
    • linux

      A DESCRIPTION OF THE PROBLEM :
      The documentation for javax.swing.AbstractSpinnerModel says:
      "Subclasses must provide an implementation of the minimum, maximum, and value properties..."
      but there are no properties named minimum and maximum, and the documentation for the SpinnerModel interface explicitly includes unbounded models as well.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Subclasses must provide an implementation of the value property and the getNextValue and getPreviousValue methods.
      ACTUAL -
      Subclasses must provide an implementation of the minimum, maximum, and value properties and the getNextValue and getPreviousValue methods.

      URL OF FAULTY DOCUMENTATION :
      http://download.java.net/jdk6/docs/api/javax/swing/AbstractSpinnerModel.html

            gromainsunw Guy Romain (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: