[jboss-jira] [JBoss JIRA] Created: (JBVFS-106) ZipFileWrapper.delete() blows up if it is interrupted

David Lloyd (JIRA) jira-events at lists.jboss.org
Thu Apr 16 01:22:22 EDT 2009


ZipFileWrapper.delete() blows up if it is interrupted
-----------------------------------------------------

                 Key: JBVFS-106
                 URL: https://jira.jboss.org/jira/browse/JBVFS-106
             Project: JBoss VFS
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: David Lloyd
            Priority: Minor
             Fix For: 2.2.0.GA


Two problems.  One, the delete is aborted without a known result.  Two, the caller has no clue that its thread has been interrupted.

The cardinal rule of interruption is: Either rethrow an InterruptedException, or swallow it AND re-set the thread interrupt flag.  The right behavior in this case is to swallow the exception, set the flag, and immediately return "true" if we deleted the file and "false" if we did not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list