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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24105

In FileSource.FileSourceOutputStream return value of File.renameTo ist ignored

           Summary: In FileSource.FileSourceOutputStream return value of
                    File.renameTo ist ignored
           Product: Avalon
           Version: unspecified
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Excalibur
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In method close() of the inner class FileSourceOutputStream of class FileSource 
a temporary file is renamed to the name of the original file. However, the 
return value of java.io.File.renameTo is ignored. Rather it should interpret 
the return value and raise an appropriate exception. For example:

if (!m_tmpFile.renameTo(m_source.getFile())) {
   throw new IOException("Could not rename " + 
     m_tmpFile.getAbsolutePath() + 
     " to " + m_source.getFile().getAbsolutePath());
}

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

Reply via email to