You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Dominique Devienne <DD...@lgc.com> on 2002/09/11 16:13:20 UTC

RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Project .java

FWIW, this kind of method releasing resources is usually called dispose().

-DD

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Wednesday, September 11, 2002 3:24 AM
To: ant-dev@jakarta.apache.org
Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant
Project.java

On 10 Sep 2002, <st...@apache.org> wrote:

>   We may want to think of cleaning this list up for extra leak
>   prevention.

At which point would the list be best cleaned?  Only place I can think
of is when the project is done - at this point either Ant exits or the
project reference itself is invalidated (in Ant.java for example).

We could add an explicit clear method that could be used by <ant>,
this one could then clear the property, task and data-type definition
tables as well.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Project .java

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Stefan Bodewig" <bo...@apache.org>
To: <an...@jakarta.apache.org>
Sent: Wednesday, September 11, 2002 7:25 AM
Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Project
.java


> On Wed, 11 Sep 2002, Dominique Devienne <DD...@lgc.com> wrote:
>
> > FWIW, this kind of method releasing resources is usually called
> > dispose().
>
> unless it is in java.awt.Image, where it is called flush 8-)
>

And on .net there is an IDisposable interface and a using() language
construct that  aims to provide deterministic disposal calling to
programmers who can't deal with a GC invoking 'whenever', and who
(fortunately) cant deal with threading either.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Project .java

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 11 Sep 2002, Dominique Devienne <DD...@lgc.com> wrote:

> FWIW, this kind of method releasing resources is usually called
> dispose().

unless it is in java.awt.Image, where it is called flush 8-)

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>