2 Replies Latest reply on Mar 27, 2013 1:24 AM by EJP

    JNI generated header file does not match the class file

      We have had a JNI project for many years and all has been fine. Within our libraries we have several classes that have inner enum classes.

      Recently we have moved to JDK1.7. Up to now when JNI generated the methods where the signature used the inner enum class, and it was an oveloaded method, we would get something like the following as the signature:


      And the class file result of the build would look like the following:


      Since we have moved to JDK 1.7 the header file looks like the following:


      The class file is still the same, and because of that when we run the program we get an UnsatisfiedLinkError. I understand that this error is because the VM cannot find the implementation. So why JDK 1.7 generates a header file that does not match the class file?

      Thank you in advance.