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

(prop) spec: Improve javadoc for java.util.Property.list() to mention truncation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • Cause Known
    • sparc
    • solaris_2.6



      Name: jk109818 Date: 01/10/2002


      FULL PRODUCT VERSION :
      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      SunOS bistro 5.6 Generic_105181-29 sun4u sparc SUNW,Ultra-4





      A DESCRIPTION OF THE PROBLEM :
      The jdk 1.3 documentation for both java.util.Property.list
      () methods doesn't mention that both implemenations will
      truncate the property value if it's longer than 40
      characters. I think this would be useful information for
      developers (especially when they are trying to figure out
      why all their property values are truncated!!!;-)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. point a web browser at
      http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html#list(java.io.PrintWriter)
      2. read the javadoc comment
      3. Note that it doesn't say anything about truncation of
      values.
      4. Scratch head.

      This bug can be reproduced always.
      (Review ID: 138109)
      ======================================================================

            sherman Xueming Shen
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: