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

(prop) Document that Properties.list truncates values larger than 40 characters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0u5
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      There are many bug reports about the fact that Properties.list truncates values larger than 40 characters to 37 characters + "...". This cannot be changed for compatibility reasons. Fair enough. However, we should at least document that behavior in the API.

      Actually the API don't tell you about it:

          /**
           * Prints this property list out to the specified output stream.
           * This method is useful for debugging.
           *
           * @param out an output stream.
           */
          public void list(PrintStream out) {

      and
          /**
           * Prints this property list out to the specified output stream.
           * This method is useful for debugging.
           *
           * @param out an output stream.
           * @since JDK1.1
           */
           public void list(PrintWriter out) {

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                jloefflm Johann Löfflmann (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: