JNIEnv *

I noticed in the JNI spec, every function has a JNIEnv* env parameter, through which you can access the Java environment.

However, in C, you should use (*env)->xxxx to access it, whereas in C++, you need to use env->xxxx.

Could anyone let me know what's behind such a design decision?

Thanks

[323 byte] By [yin7928a] at [2007-11-27 5:08:21]
# 1
What design decision?
bschauwejavaa at 2007-7-12 10:27:47 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Why can't both C and C++ use the same calling convenstion? e.g. env->xxxx?
yin7928a at 2007-7-12 10:27:47 > top of Java-index,Java HotSpot Virtual Machine,Specifications...