commit-classpath
[Top][All Lists]
Advanced

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

[bug #5615] java.util.prefs.Preferences.defaultFactoryClass invalid


From: nobody
Subject: [bug #5615] java.util.prefs.Preferences.defaultFactoryClass invalid
Date: Mon, 29 Sep 2003 10:57:47 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6

=================== BUG #5615: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5615&group_id=85

Changes by: AJ Shankar <address@hidden>
Date: Mon 09/29/2003 at 14:57 (GMT)

------------------ Additional Bug Attachment  ----------------------------
File name: Preferences.java               Size:27 KB
A sample fixed version of the file
http://savannah.gnu.org/bugs/download.php?group_id=85&amp;bug_id=5615&amp;bug_file_id=690



=================== BUG #5615: FULL BUG SNAPSHOT ===================


Submitted by: ajshankar               Project: classpath                    
Submitted on: Mon 09/29/2003 at 08:34
Severity:  5 - Major                  Resolution:  None                     
Assigned to:  None                    Status:  Open                         
Platform Version:  Red Hat 9.x        

Summary:  java.util.prefs.Preferences.defaultFactoryClass invalid

Original Submission:  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) {

... 

}



No Followups Have Been Posted


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Mon 09/29/2003 at 14:57  Name: Preferences.java  Size: 27KB   By: 
ajshankar
A sample fixed version of the file
http://savannah.gnu.org/bugs/download.php?group_id=85&amp;bug_id=5615&amp;bug_file_id=690


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5615&group_id=85

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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