bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/22702] java.util.prefs.Preferences.defaultFactoryClass in


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22702] java.util.prefs.Preferences.defaultFactoryClass invalid
Date: 16 Oct 2005 01:26:39 -0000

There is no such class as MemoryBasedPreferencesFactory -- should be
"gnu.java.util.prefs.MemoryBasedFactory", perhaps.

Also getFactory needs to be fixed, as it uses Class.forName incorrectly. (You
still have to instantiate the class.)
should be along the lines of 
Class o = Class.forName(defaultFactoryClass);
try {
  factory = (PreferencesFactory) o.newInstance();
} catch (Exception e) {
... 
}


------- Comment #1 from from-classpath at savannah dot gnu dot org  2003-10-02 
19:49 -------
I commited a fix.


-- 


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





reply via email to

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