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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 5.0u5
    • Component/s: 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) {

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: