harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [vmi] JNI spec interpretation?
Date Tue, 04 Apr 2006 22:53:44 GMT
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.



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

View raw message