https://bz.apache.org/bugzilla/show_bug.cgi?id=64542

            Bug ID: 64542
           Summary: FileBackedDataSource closing external FileChannel
           Product: POI
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

I am creating POIFSFileSystem instances in various ways, depending on what I
have available: a File, FileChannel or InputStream. I just found out that
calling POIFSFileSystem.close() (via a try-with-resources) also closes the
FileChannel, even when that channel is passed to it from an external source.
Any subsequent operations on that channel (like calculating an MD5 hash) then
run into a ClosedChannelException. IMHO POIFSFileSystem/FileBackedDataSource 
should only close the FileChannel if it has created it itself. It would be
great if you could fix this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to