Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 72013 invoked from network); 15 Oct 2007 12:50:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2007 12:50:04 -0000 Received: (qmail 57136 invoked by uid 500); 15 Oct 2007 12:49:51 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 57112 invoked by uid 500); 15 Oct 2007 12:49:51 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 57103 invoked by uid 99); 15 Oct 2007 12:49:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 05:49:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oliver.deakin@googlemail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 12:49:51 +0000 Received: by ug-out-1314.google.com with SMTP id u40so887105ugc for ; Mon, 15 Oct 2007 05:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=BnwEU1vXMzyGBnP/s8X7R0gIv5s7EIuN4/VQqgk24x0=; b=hazyZjGNYdn2DZLSojAt7gsk8PRUmTqwdGRgtFkxPeXZ6qiIzu0fRpNyytmF+vP9mMS3/kCVjygyaA8Zl4A1pbGirZf8q8y8mwH7tmwXE3nJZ8U7FfAfLPJcIZ0RFoutJWQeYQ5Z5Nim+XIagdM7qy9jWkPqI2qrA2YniX3HO7U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=PPlDRs4dwkgkROxDYBjM5/SoR4q4QZ84DA9FUM6ckHA+Bjckoi0LLWf6d40IUFZOj575QD0pLKG7uwBydP3sAxuzRUIPniaXLPSII3J0I4Fh81e7jdepDhiTUDqRpTPOQsDRK1lFcyYclzbeDCjyWnDQTo+P1+lLCxkYPUQ/8So= Received: by 10.67.116.9 with SMTP id t9mr7839799ugm.1192452570030; Mon, 15 Oct 2007 05:49:30 -0700 (PDT) Received: from ?9.20.183.65? ( [195.212.29.75]) by mx.google.com with ESMTPS id c25sm3237576ika.2007.10.15.05.49.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Oct 2007 05:49:28 -0700 (PDT) Message-ID: <471361D9.7020506@googlemail.com> Date: Mon, 15 Oct 2007 13:49:29 +0100 From: Oliver Deakin User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [launcher] Uncaught exceptions not printed on J9 VME References: <470F9FFB.4050109@googlemail.com> <47124A6D.5090106@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Leo Li wrote: > On 10/15/07, Alexey Varlamov wrote: > >> 2007/10/15, Alexey Varlamov : >> >>> >>> The bug of RI [4] (fixed in 1.5) being referred by Oliver is a bit >>> wider than just printing out the stack trace. Synopsis reads: >>> "(thread) setUncaughtExceptionHandler() doesn't work on main thread ". >>> I believe this is really strong argument to use DetachCurrentThread >>> and be compatible with RI rather than spec (which should be fixed and >>> will be someday ;) >>> >> FYI, spec is indeed fixed in 1.6 : >> http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/invocation.html#wp16553 >> > > The clue from the change in spec is enough to show that it is > appropriate to call DetachCurrentThread() in the main thread when > shutdowning VM. > > I just checked and this bug has not been fixed in jdk 1.6 either, so it seems that we are still expected to call DetachCurrentThread() before DestroyJavaVM when using the RI. Regards, Oliver