This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix for the env->klass field value in _Jv_JNIMethod::call


Hi,

Mark Wielaard wrote:
> It is probably never correct. We were most likely just lucky that no JNI
> library ever tried to load classes not found through the system class
> loader. So we probably should just update env->klass inside
> _Jv_GetJNIEnvNewFrame itself, just like we reset the pending exception.
> _Jv_GetJNIEnvNewFrame already gets the defining class as argument.
> 

And how about restoring the old value after the call? For example, when
native method calls native method of other class. I think, in this case
after the call to the second native method klass should be restored to
the class of the first native method.


-- 
WBR,
Ivan S. Dubrov

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]