Index: lutinutil/src/java/org/codelutin/option/Config.java diff -u lutinutil/src/java/org/codelutin/option/Config.java:1.9 lutinutil/src/java/org/codelutin/option/Config.java:1.10 --- lutinutil/src/java/org/codelutin/option/Config.java:1.9 Tue Jan 8 01:15:43 2008 +++ lutinutil/src/java/org/codelutin/option/Config.java Tue Jan 8 19:00:46 2008 @@ -586,13 +586,13 @@ } protected void loadFromDefaultValue() throws IOException { - for (ConfigPropertyKey propertyKey : universe) { - if (propertyKey.isTransient()) { + for (ConfigPropertyKey key : universe) { + if (key.isTransient() && !(key.isFinal() && key.isStatic())) { continue; } - Object defaultValue = propertyKey.getDefaultValue(); + Object defaultValue = key.getDefaultValue(); if (defaultValue != null) { - if (propertyKey.getType() == File.class) { + if (key.getType() == File.class) { File f = (File) defaultValue; if (!f.isAbsolute()) { File here = new File(""); @@ -600,8 +600,8 @@ defaultValue = new File(System.getProperty("user.home"), f.getAbsolutePath().substring(pos)); } } - log.info(propertyKey.getKey() + " = " + defaultValue); - setProperty(propertyKey, defaultValue); + log.info(key.getKey() + " = " + defaultValue); + setProperty(key, defaultValue); } } }