Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 38835 invoked from network); 4 Apr 2006 22:54:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 22:54:13 -0000 Received: (qmail 1655 invoked by uid 500); 4 Apr 2006 22:54:11 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 1354 invoked by uid 500); 4 Apr 2006 22:54:10 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 1341 invoked by uid 99); 4 Apr 2006 22:54:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 15:54:10 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 217.158.94.220 is neither permitted nor denied by domain of t.p.ellison@gmail.com) Received: from [217.158.94.220] (HELO cirrus.purplecloud.com) (217.158.94.220) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 15:54:09 -0700 Received: (qmail 47570 invoked from network); 4 Apr 2006 23:53:47 +0100 Received: from unknown (HELO ?192.168.0.2?) (85.133.120.161) by smtp.purplecloud.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 4 Apr 2006 23:53:47 +0100 Message-ID: <4432F8F8.6020301@gmail.com> Date: Tue, 04 Apr 2006 23:53:44 +0100 From: Tim Ellison User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [vmi] JNI spec interpretation? References: <4432C57D.6070304@sablevm.org> In-Reply-To: <4432C57D.6070304@sablevm.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Etienne Gagnon wrote: > Hi, > > I have started playing with the launcher and SableVM. I have a little > fun trying to figure out how to debug the thing using DDD. The execv > trick was a nasty one to get over... Glad you are having fun ;-) > Anyway, now that it works, I am > facing a JNI specification interpretation problem. > > It seems that the launcher assumes that it is OK to call > (*env)->ExceptionDescribe() even when there is no pending exception. > > My reading of the JNI spec is different. The spec says: > > "... This function has the side effect of clearing *the* pending > exception..." > > This contrasts with ExceptionClear which says: > > "...Clears *any* pending exception... If no exception..." > > Therefore, I always assumed that the necessarily was a pending > exception. One cannot talk about *the* pending exception, if there is > not necessarily one. Otherwise, the spec would have said: ...clearing > any pending exception... > > > What do others think? Should I file a bug against the launcher, i.e: > > native-src/shared/launcher/main.c line 1006 I've fixed it in repo revision 391436. But if people want to debate whether `describe` should be a noop or error where there is no pending exception, then go ahead. Regards, Tim -- Tim Ellison (t.p.ellison@gmail.com) IBM Java technology centre, UK. --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org