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

jni.h contains invalid reference to jni_md.h

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6u31
    • tools
    • x86
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.6.0_31"
      Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 x64 [Version 6.1.7601]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Am using MinGW 20120426 (gcc port) as C compiler.

      A DESCRIPTION OF THE PROBLEM :
      Am building a custom JNI library.

      gcc is configured to search JAVA_HOME\include so that jni.h can be found.

      jni.h includes "jni_md.h" (line 27). This fails as the compiler cannot find "jni_md.h". The file exists in the directory "win32", one level down.

      Line 27 should probably read:
      #include "win32/jni_md.h"


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a .c file containing the line:
      #include "jni.h"

      Attempt to compile it.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Manually copy jni_md.h from include/win32 to include.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: