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

(prefs) documentation error in Preferences.userNodeForPackage() & systemNodeForPackage()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0, 1.4.2
    • core-libs
    • generic, x86
    • generic, windows_2000

      Name: rmT116609 Date: 12/09/2002


      DESCRIPTION OF THE PROBLEM :
      The API documentation for both Preferences.userNodeForPackage() and Preferences.systemNodeForPackage() contains the following erroneous statement:

      "For example the absolute path name of the node associated with the class com.acme.widget is /com/acme/widget."

      The path name associated with the *class* com.acme.widget would be /com/acme not /com/acme/widget. I believe the documentation reads "class" when it should read "package".

      Please see:

      http://java.sun.com/j2se/1.4.1/docs/api/java/util/prefs/Preferences.html#userNodeForPackage(java.lang.Class)

      http://java.sun.com/j2se/1.4.1/docs/api/java/util/prefs/Preferences.html#systemNodeForPackage(java.lang.Class)

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

            sherman Xueming Shen
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: