Uploaded image for project: 'JBoss VFS'
  1. JBoss VFS
  2. JBVFS-106

ZipFileWrapper.delete() blows up if it is interrupted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.1.2.GA
    • None
    • None
    • None
    • Low

      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.

            dlloyd@redhat.com David Lloyd
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: