Re: JNI can't look up inner class
- From: jolz <BardzoTajneKonto@xxxxxxxxxx>
- Date: Wed, 21 Jan 2009 09:52:15 +0100
(ditto when I call javap -s Caller$Inner btw).
Show us result of that command. It should show get()'s signature.
jm = env->GetStaticMethodID(jcls, "get", "V(I)");
Method get() isn't static.
Signature is wrong. javap will show signature similar to constructor's but with changed return type from void to int.
# SIGSEGV (0xb) at pc=0xb79721cb, pid=16424, tid=3074430656
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_16-b02 mixed mode)
# Problematic frame:
# V [libjvm.so+0x2bf1cb]
This shouild never happen. If exceptions aren't thrown, allways check for possible error after a function call. The error is caused by NULL jm - this should be checked before passing jm to CallIntMethod().
.
- Follow-Ups:
- Re: JNI can't look up inner class
- From: Arne
- Re: JNI can't look up inner class
- References:
- JNI can't look up inner class
- From: Arne
- JNI can't look up inner class
- Prev by Date: Re: 2D array syntax
- Next by Date: Getting an arbitary date the *RIGHT* way
- Previous by thread: Re: JNI can't look up inner class
- Next by thread: Re: JNI can't look up inner class
- Index(es):
Relevant Pages
|