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

Format.format(Object, StringBuffer, FieldPosition) doc errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.1.5
    • 1.1.3
    • docs
    • None
    • 1.1.5
    • sparc
    • solaris_2.5.1
    • Not verified



      Name: rlT66838 Date: 08/13/97


      The java doc for java.text.Format#format(Object, StringBuffer, FieldPosition)
      is incorrect.

      It describes a status parameter

      status - On input: an alignment field, if desired. On output: the offsets of the alignment field.

      There is no status parameter, but there is an undocumented fieldPosition parameter.
      The description of the non-existant status parameter
      cannot be relevant to the fieldPosition parameter
      since it implies that fieldPosition is altered by the
      method but FieldPosition has no public "set" methods
      so that any user derived class outside of the java.text
      package will not be able to use the fieldPosition parameter.

      The error is repeated in all derived classes such
      as NumberFormat, DateFormat etc.


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

            dkramersunw Douglas Kramer (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: