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 Fri, 19 Mar 2004 19:11:53 GMT
> From: Martijn Kruithof [mailto:martijn@kruithof.xs4all.nl]
> Back to the cause analysis of the gc mystery:
> It seems to me that expandFile of Expand.java (the class implementing
> the unzip task) leaks non
> explicitly closed streams, that are very likely to lead to open file
> handles from the expandFile
> method.

It's possible. But code at a higher level has a try/finally block
on the ZipFile, and closes it. That close method, at least for the
JDK version of ZipFile, closes all input stream on that ZipFile,
and I can only suppose Ant's own impl also does. --DD

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


Mime
View raw message