[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug inetlib/31376] New: javax.mail.util.SharedFileInputStream needs to
From: |
afreije at inn dot nl |
Subject: |
[Bug inetlib/31376] New: javax.mail.util.SharedFileInputStream needs to count open streams that share the same file |
Date: |
27 Mar 2007 15:59:47 -0000 |
When several instances of the same javax.mail.util.SharedFileInputStream are
created with newStream(), you can read from the streams. But when you close one
of them, the underlying RandomAccessFile is closed, blocking access for all
streams.
Interestingly, the same bug was reported on the sun implementation, see
http://www.nabble.com/Bad-file-descriptor-when-writing-out-javamail-t414360.html#a1143191
The indicated blog entry has a nice test case.
The SharedFileInputStream needs a count for all streams that share the same
file.
Already working on a patch...
--
Summary: javax.mail.util.SharedFileInputStream needs to count
open streams that share the same file
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: inetlib
AssignedTo: dog at gnu dot org
ReportedBy: afreije at inn dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31376
- [Bug inetlib/31376] New: javax.mail.util.SharedFileInputStream needs to count open streams that share the same file,
afreije at inn dot nl <=