http://kenai.com/bugzilla/show_bug.cgi?id=3566
Summary: InputStreams are not closed in MimeMultipart
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
in the parse() and parsebm() methods there are new InputStreams created but
never closed.
part = createMimeBodyPart(sin.newStream(start, end));
due to the wrong implementation of the SharedFileInputStream it is not seen as
a problem, because the master stream is closed in the finally which also closes
this sub-stream.
however this becomes a problem when you are using a SharedInputStream
implementation that behaves as specified (for example the bouncy-castle lib has
such an implementation)
In that case, the unclosed stream results in a file handle leak.
--
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.