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

spec for java.awt.List.List() is wrong

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.5
    • Verification:
      Verified

      Description



      Name: dsC58869 Date: 05/26/98



      The JLS for java.awt.List.List() constructor is wrong.
      It says there are no visible lines in the list :
          /**
           * Creates a new scrolling list. Initially there are no visible
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           * lines, and only one item can be selected from the list.
             ^^^^^
           */
          public List()
       
      But List(0, false) called by List() sets number of visible lines
      to DEFAULT_VISIBLE_ROWS (package private constant):
      " * @(#)List.java 1.54 98/04/11"

           public List(int rows, boolean multipleMode) {
      this.rows = (rows != 0) ? rows : DEFAULT_VISIBLE_ROWS;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      this.multipleMode = multipleMode;
          }

      ======================================================================
       Justification:
      Wrong specification, should be fixed for JCK testing.

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

        Attachments

          Activity

            People

            • Assignee:
              dgreensunw Dale Green (Inactive)
              Reporter:
              dsilaev Dmitri Silaev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: