Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
1.4
-
None
-
None
-
None
-
Debian Etch i386, Java 1.6
Description
PropertiesConfiguration does not auto save the properties file under the following circumstances:
File before:
key=test2
PropertiesConfiguration conf2 = new PropertiesConfiguration();
conf2.load(new File("test2.properties"));
conf2.setAutoSave(true);
System.out.println("Conf2: Before changing value:" + conf2.getProperty("key"));
conf2.setProperty("key", "test2after");
System.out.println("Conf2: After changing value:" + conf2.getProperty("key"));
File after:
key=test2
If you use the contrcutor PropertiesConfigurator(File file); everything is fine!