Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 47685 invoked from network); 13 Sep 2005 21:36:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2005 21:36:56 -0000 Received: (qmail 53246 invoked by uid 500); 13 Sep 2005 21:36:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 53000 invoked by uid 500); 13 Sep 2005 21:36:50 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 52978 invoked by uid 99); 13 Sep 2005 21:36:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 14:36:50 -0700 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 [66.93.220.191] (HELO ergotech.com) (66.93.220.191) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 14:37:00 -0700 Received: from MYSTIC.ergotech.com (outside [69.252.211.3]) (authenticated bits=0) by ergotech.com (8.13.4/8.13.4) with ESMTP id j8DLaZ4Y000323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Sep 2005 15:36:42 -0600 Message-Id: <6.2.0.14.0.20050913153357.029a42e0@mail.ergotech-usa.com> X-Mailer: QUALCOMM Windows Eudora Version 6.2.0.14 Date: Tue, 13 Sep 2005 15:34:37 -0600 To: user@ant.apache.org From: Elizabeth Cooper Subject: thread death problem Cc: Jim Redman Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N There seem to many places in the code where there is a clause: try { [...] } catch (Throwable t) { [...] } This will cause many problems if t is a thread death. From the JavaDocs for ThreadDeath: "If ThreadDeath is caught by a method, it is important that it be rethrown so that the thread actually dies." The way around this is to specifically catch "ThreadDeath" and rethrow it. try { [...] } catch (ThreadDeath td ) { throw td; } catch ( Throwable t ) { [...] } --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org