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)
======================================================================
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)
======================================================================
- duplicates
-
JDK-5038867 (prefs spec) Incorrect example text in java.util.prefs.Preferences doc comments
-
- Resolved
-