Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 96818 invoked from network); 15 Jul 2005 10:44:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jul 2005 10:44:54 -0000 Received: (qmail 26925 invoked by uid 500); 15 Jul 2005 10:44:51 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 26887 invoked by uid 500); 15 Jul 2005 10:44:51 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 26870 invoked by uid 99); 15 Jul 2005 10:44:51 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2005 03:44:42 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id EDCE317; Fri, 15 Jul 2005 12:44:39 +0200 (CEST) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 35750] - Memory leak in JUnit task X-Bugzilla-Reason: AssignedTo Message-Id: <20050715104439.EDCE317@ajax.apache.org> Date: Fri, 15 Jul 2005 12:44:39 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35750 ------- Additional Comments From j_a_fernandez@yahoo.com 2005-07-15 12:44 ------- I am always thinking that is something wrong on all this lestener mechanisms that people build in Java. Most APIs have addListener and removeListener but there is no way to test if a listener is already there and if one tries to remove and is not there it throws exceptions at you. Which means you need to do bookkeeping on the side. And complicates code unnecessarily. I do not know if using week-references as the listeners will solve this kinds of issues of memory leaks, you still need to keep a hard reference somewhere so that the weak is not lost. Any ideas how to design better listeners/ this ANT problem is just an example. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org