ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Pb with <unzip>+<trycatch>+<delete>
Date Wed, 17 Mar 2004 15:42:35 GMT
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> 
> On Tue, 16 Mar 2004, Alexey N. Solofnenko <A.Solofnenko@mdl.com>
> wrote:
> 
> > I have had such problems with still open files and every time I
> > thought it was a JDK bug, but later by adding try/finally with
> > close() I fixed it.
> 
> In DD's case we are talking about <unzip> which has such a finally
> block that closes the ZipFile.  This is Ant's ZipFile which uses a
> RandomAccessFile underneath which in turn gets closed in
> ZipFile#close.  I don't think we are missing a call to close - this
> time.

Ah, that's a good point Stefan. I checked the JDK impl of ZipFile,
and forgot that Ant was using it's own impl... Maybe there is a
leak somewhere in that impl!?!? --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message