]
David Lloyd closed JBVFS-106.
-----------------------------
Resolution: Done
Assignee: (was: David Lloyd)
Committed revision 87399.
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: