DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32020>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32020

Fails silently if asked to save to an invalid filename

           Summary: Fails silently if asked to save to an invalid filename
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Configuration
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Running code like this...

FileConfiguration config = new PropertiesConfiguration();
config.setFile(new File("/invalid/path/my.properties"));
config.save();

...doesn't throw any Exception. AbstractFileConfiguration.save(File) swallows 
the FileNotFoundException, prints a stack trace, and completes normally, 
without having saved the file.

Cheers
Iain Shepherd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to