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

(prefs spec) Incorrect example text in java.util.prefs.Preferences doc comments

    • b14
    • generic, x86
    • generic, windows_2000

      There is a misleading typo in the method comments for the methods:

          Preferences.userNodeForPackage(Class c);
          Preferences.systemNodeForPackage(Class c);

      The last line of the first paragraph in both classes says:

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

      Since the last name in a class name is the class itself, and since
      these methods are creating Preferences for the package, not the
      class, the node path name indicated there is one name too long.

            sherman Xueming Shen
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: