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

Doc: java.text.CharacterIterator.DONE wording not written for public Javadoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • core-libs
    • beta
    • generic
    • generic



      Name: nl37777 Date: 10/06/98


      The wording of the field description for
      java.text.CharacterIterator.DONE doesn't quite
      seem to have been written with Javadoc comment
      extraction fully in mind.

      It says:

        public static final char DONE

           Constant that is returned when the iterator
           has reached either the end or the beginning
           of the text. The unicode 2.0 standard states
           that '\\uFFFF' is an invalid unicode value
           and should not occur in any valid unicode
           string.


      It appears that the programmer or document wrote
      that text forgetting that the value of the constant
      is not visible in JavaDoc. (The programmer might
      have been documenting a design decision for future
      maintenance programmers to read, but then it possibly
      shouldn't be in a public Javadoc comment.)

      I would think that you want this comment to mention
      that DONE's value is '\uFFFF' so that sentence about
      the what the Unicode standard says about '\uFFFF'
      doesn't come so unexpectedly.


      DSB/DFI
      (Review ID: 39847)
      ======================================================================

            nlindenbsunw Norbert Lindenberg (Inactive)
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: