Name: bsC130419 Date: 08/29/2001
Java (TM) 2 Runtime Environment, Standard Edition
Please add:
#define JDK1_4
to jni.h for JDK 1.4
When the JNI spec was rev'ed for Java2 new functions (e.g.
ToReflectedMethod) was added to <jni.h>, a new #define was added:
JDK1_2. I use that preprocessor symbol to write JNI C code that can take
advantage of 1.2 JNI functions when compiled on a 1.2 JDK.
I just downloaded JDK 1.4 beta 2 and looked at <jni.h>. There are new
functions (e.g. NewDirectByteBuffer) but there is no new #define (e.g.
JDK1_4). Without such a preprocessor symbol, I can't write JNI code that
compiles on all JDK's.
(Review ID: 130862)
======================================================================