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

guarantee(klass_hash_ok(k, id),Bug in native code: jfieldID class must match object)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • hs11
    • 7
    • hotspot
    • None
    • b06
    • x86
    • windows_2000

        Tests script problem.

        Two runtime regression tests fail on Windows when run with debug VM:
        closed\runtime\4474873
        closed\runtime\4524377

        fastdebug\bin\java -Xcheck:jni CheckJNITest InstanceFieldID2
        #
        # An unexpected error has been detected by Java Runtime Environment:
        #
        # Internal Error (C:\PrtBuildDir\workspace\src\share\vm\prims\jni.cpp:181), pid=21032, tid=12644
        # Error: guarantee(klass_hash_ok(k, id),"Bug in native code: jfieldID class must match object")
        #

        Test's script exptects "FATAL ERROR" which produced only by product VM:

        C:\hs_regression\Test4474873>C:\jdk7_b12\bin\java -Xcheck:jni CheckJNITest InstanceFieldID2
        FATAL ERROR in native method: Wrong field ID passed to JNI
                at CheckJNITest.checkInstanceFieldID2(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:624)
                at CheckJNITest.main(CheckJNITest.java:89)

              ikrylov Ivan Krylov (Inactive)
              kvn Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: