Wednesday, 15 September 2004
Vote for Java 5.0 Bug #5102290
Yesterday I filed a bug for Java 5.0. Bug ID#: 5102290 (requires login). Synopsis: Properties.storeToXML creates invalid XML if form-feed character present
There are a couple of new methods (storeToXML and loadFromXML) on the java.util.Properties object that allow you to export and load your properties files to and from an XML format. It's a simple format. Works like a champ. Well, it works until one of your keys and/or values contains a form-feed character (\f). So, even though the character gets written out as , this is an invalid character in XML 1.0. Try to read in that XML file you've just written and you'll get a nice exception from your XML parser.
Update: Already there are 8 more votes bringing the total to 9. Thanks. Keep 'em coming!
Posted by at 4:33 PM in java ... just java
