Javamail 1.4 SharedFileInputStream works differently from Javamail 1.3.2 SharedFileInputStream.

The fact is:

a = new SharedFileInputStream(file);
b = a.newStream();
a.close();
b.read();

works in javamail 1.3.2 but not in 1.4
1.4 mandates that when you close the "main stream" it force the closing of all "newStream" generated streams. Previously it was keeping a reference counter and only closed the main sharedfile only when all the generated streams were closed.

Not sure this is the intended behaviour or not, but I'm trying to find a workaround (keep the main stream opened). I would not want to come back to javamail 1.3.2 another time!

Btw, I'm working on this...

Stefano

Norman Maurer wrote:
Am Freitag, den 05.05.2006, 19:17 +0200 schrieb Stefano Bagnara:
I've found that 2 tests are failing (blame me I did not run tests before packaging the files for the vote).

I've not seen problems in my current production server using this release but I'm investigating a problem in the SharedFileInputStream bundled with Javamail 1.4 that seems to cause the problem.

I have it running too in my enviroment and had no problems yet..
Strange..

bye
Norman



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to