This is the mail archive of the java@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: Bug in JNI RegisterNatives?


>>>>> "Juerg" == Juerg Lehni <juerg@scratchdisk.com> writes:

Juerg> But the way JNINativeMethod is defined in jni.h, I cannot forward  
Juerg> declare it that way.

Oh yes.  Sorry about that.

Juerg> Changing this would help, but I'm not sure we can do this, as the  
Juerg> file is part of classpath. But this should work:
Juerg> typedef struct JNINativeMethod

I'm away now and can't look to see if this is ok.
The key is whether it breaks compatibility in any way.

Sometimes I think we should have simply made all the data members of
Class public for use ("at your own risk") by CNI.

Juerg> Class.h does not foward declare JNIEnv. _Jv_JNIEnv is used at 4  
Juerg> places, but not declared. I'm a bit puzzled. It must be declared in  
Juerg> one of the includes, but where?

There is a forward declaration in gcj/javaprims.h.

Tom


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