http://kenai.com/bugzilla/show_bug.cgi?id=3565
Summary: SharedFileInputStream does not behave as specified
Product: javamail
Version: 1.4.4
Platform: PC
OS/Version: Windows
Status: NEW
Severity: enhancement
Priority: P5
Component: source
AssignedTo: shannon_at_kenai.com
ReportedBy: m.haeusler_at_kenai.com
CC: issues_at_javamail.kenai.com
when the close method is called on a SharedFileInputStream it behaves
inconsistent depending on the "master" flag, which causes all derived streams
to be closed as well.
this is contradicts what is defined in the SharedInputStream interface where it
says:
* Note that implementations of this interface must ensure that the
* <code>close</code> method does not close any underlying stream
* that might be shared by multiple instances of <code>SharedInputStream</code>
* until all shared instances have been closed.
*
we are using the SharedFileInputStream outside of the java mail context and had
problems due to this unexpected behavior. for example if derived streams are
used in different threads and the master stream gets closed.
--
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.