Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 62933 invoked from network); 2 Nov 2005 18:10:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Nov 2005 18:10:38 -0000 Received: (qmail 40658 invoked by uid 500); 2 Nov 2005 18:10:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 40605 invoked by uid 500); 2 Nov 2005 18:10:18 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 40586 invoked by uid 500); 2 Nov 2005 18:10:17 -0000 Delivered-To: apmail-jakarta-tomcat-user@jakarta.apache.org Received: (qmail 40581 invoked by uid 99); 2 Nov 2005 18:10:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 10:10:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.63.108.53] (HELO usbb-lacimss3.unisys.com) (192.63.108.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 10:10:11 -0800 Received: from USBB-LACGW3.na.uis.unisys.com ([129.224.98.43]) by usbb-lacimss3 with InterScan Messaging Security Suite; Wed, 02 Nov 2005 13:24:57 -0500 Received: from USBB-LACGW3.na.uis.unisys.com ([129.224.98.44]) by USBB-LACGW3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 2 Nov 2005 13:09:31 -0500 Received: from USRV-EXCH1.na.uis.unisys.com ([129.225.81.6]) by USBB-LACGW3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 2 Nov 2005 13:09:31 -0500 Received: from USRV-EXCH4.na.uis.unisys.com ([192.61.245.232]) by USRV-EXCH1.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 2 Nov 2005 12:09:30 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: finalize question Date: Wed, 2 Nov 2005 12:09:28 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: finalize question Thread-Index: AcXf10XCajzqE5iYQoGltvkXUFVW9gAAMq9Q From: "Caldarale, Charles R" To: "Tomcat Users List" , X-OriginalArrivalTime: 02 Nov 2005 18:09:30.0162 (UTC) FILETIME=[91C76120:01C5DFD8] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > From: Andy Kriger [mailto:andy.kriger@gmail.com]=20 > Subject: finalize question >=20 > Problem is, I'm not seeing any finalize methods being called. Reliance on finalizers is a sign of extremely poor application design. First, it can be a significant performance hit, since objects with finalizers have to be handled specially both by allocation and garbage collection. Second, there's no guarantee that a finalizer will _ever_ be called, so if you're dependent on that happening, you're in trouble right from the start. Much better to design your app with discrete event handling and not leave it up to the whims of the garbage collector. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org