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

Missing line in @param tag in several TextArea constructors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • docs
    • None
    • beta
    • generic
    • generic

      In TextArea.java, a line seems to be missing from the javadoc comment
      for constructors that take a string as an argument.

      Here is an example:

          /**
           * Constructs a new text area with the specified text.
           * This text area is created with scrollbar visibility equal to
           * {@link #SCROLLBARS_BOTH}, so both vertical and horizontal
           * scrollbars will be visible for this text area.
           * @param text the text to be displayed; if
           * <code>text</code> is <code>null</code>, the empty
           * @exception HeadlessException if GraphicsEnvironment.isHeadless()
           * returns true.
           * @see java.awt.GraphicsEnvironment#isHeadless
           */
          public TextArea(String text) throws HeadlessException {
              this(text, 0, 0, SCROLLBARS_BOTH);
          }

      The error is in the param tag:
           * @param text the text to be displayed; if
           * <code>text</code> is <code>null</code>, the empty

      There should be an additional line:
           * string <code>""</code> will be displayed

      This line is missing from several constructors.

            sharonz Sharon Zakhour (Inactive)
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: