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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0u5
    • core-libs
    • generic
    • generic

      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) {

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: