Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4497685

<jni.h> does not contain a #define JDK1_4

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • hotspot
    • rc1
    • generic
    • generic



      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)
      ======================================================================

            kbr Kenneth Russell (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: