From harmony-dev-return-6238-apmail-incubator-harmony-dev-archive=incubator.apache.org@incubator.apache.org Wed Apr 05 16:34:52 2006 Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 75973 invoked from network); 5 Apr 2006 16:34:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 16:34:49 -0000 Received: (qmail 87839 invoked by uid 500); 5 Apr 2006 16:34:44 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 87798 invoked by uid 500); 5 Apr 2006 16:34:43 -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 87787 invoked by uid 99); 5 Apr 2006 16:34:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 09:34:43 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_IN_SORBS_WEB,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; Wed, 05 Apr 2006 09:34:42 -0700 Received: (qmail 60915 invoked from network); 5 Apr 2006 17:34:21 +0100 Received: from blueice1n1.uk.ibm.com (HELO ?9.20.183.160?) (195.212.29.67) by smtp.purplecloud.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 5 Apr 2006 17:34:21 +0100 Message-ID: <4433F18D.2010801@gmail.com> Date: Wed, 05 Apr 2006 17:34:21 +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> <4432FA23.6080108@dellroad.org> <443385B0.8090506@gmail.com> <4433ADEE.5050700@sablevm.org> <4433D0FE.8020905@gmail.com> <4433D29F.1020400@dellroad.org> <4433E2BA.6070300@googlemail.com> <4433E489.3000705@dellroad.org> <4433E5E2.1030005@googlemail.com> <4433EDB0.90508@sablevm.org> In-Reply-To: <4433EDB0.90508@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: > Oliver Deakin wrote: >> What I mean to say is that the behaviour when the function is called >> without a pending exception is unspecified, and in that case I think it >> makes most sense to match the RI. > > > Let's say that I disagree to *impose* matching the RI's behavior for > undefined JNI code on Harmony VMs. In many cases, matching the RI's > behavior on undefined JNI would require reverse engineering way beyond a > point I feel comfortable with. I definitely think that Harmony's native > code should NEVER rely on undefined JNI behavior. JIRA reports should > be raised for faulty JNI code. I agree. > On the other hand, I think that it would be a nice thing to keep an > explicit list of "expected" behavior for some widely used (by 3rd > parties) "undefined JNI", so that VM implementors are *encouraged* (not > *forced*) to provide such workarounds. Some workarounds can be > expensive to implement; we had we had to implement a more expensive > approach for badly written JNI code that does not explicitly reserve > enough local native references (only 16 are guaranteed by default in the > spec). I agree -- and users will vote with their feet when choosing between VMs that make different implementation decisions. That's healthy. > So, I'll add a the ExceptionDecribe workaround to SableVM permanently, > but I do not wish feel obligated to do so. :-) Of course not, that's your prerogative. 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