What is the difference between jtype (JNI) and C / C ++ type?

There are jtypes in JNI. Both jintfor intand jbooleanfor boolean. I understand that the latter types are c / C ++ types. But the type jtype? Books mention this type as a native type. What is meant by this?

EDIT:

What is jtype?

+3
source share
1 answer

from jni.h,

typedef unsigned char   jboolean
typedef unsigned short  jchar
typedef short   jshort
typedef float   jfloat
typedef double  jdouble
typedef long    jint
typedef jint    jsize

Java, C . j, Java C. , Java-, Java, j. , . typedefs. , , , typedefs

, _jstring - . jstring

class _jstring : public _jobject {};
typedef _jstring *jstring;

, String ++

+3
source

All Articles