bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22653] classpath/gnu/java/util/prefs/NodeReader.java


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22653] classpath/gnu/java/util/prefs/NodeReader.java
Date: 16 Oct 2005 01:26:18 -0000

The preference importing code dosent support importing "system" roots. The
following code is the problem:

if ("user".equals(type)) {
  root = factory.userRoot();
}
else if ("user".equals(type)) {
  root = factory.systemRoot();
}
else {
  throw new InvalidPreferencesFormatException("Unknown type: " + type);
}

The "else if" should be:

else if("system".equals(type))

>From Richard


------- Comment #1 from from-classpath at savannah dot gnu dot org  2002-09-10 
20:10 -------
Thanks. I fixed this in CVS.
Note that the NodeReader uses a quick and dirty poor mans XML reader which most
likely not works correctly on complex files.

Although I wrote the java.util.prefs package I never actually used it
extensively. Do you use it? Is it useable (besides this bug)?

Thanks,

Mark


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22653





reply via email to

[Prev in Thread] Current Thread [Next in Thread]