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

Doc for javax.swing.SpinnerListModel() is incorrect

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6



      Name: ooR10001 Date: 12/06/2000


      Specification for javax.swing.SpinnerListModel.SpinnerListModel() is incorrect
      because it says:
      ------------------------------------------------------------
      SpinnerListModel

      public SpinnerListModel()

            Construct an effectively empty SpinnerListModel.
            The model's list will contain a single "empty" string element.
            
            Throws:
                  IllegalArugmentException - if values is null or zero length
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ------------------------------------------------------------
      In fact, this constructor can not throw IllegalArugmentException exception
      because no values are passed into this constructor. It needs to be fixed.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: