|
Quick Lists
|
|
Bug ID:
|
6589875
|
|
Votes
|
0
|
|
Synopsis
|
guarantee(klass_hash_ok(k, id),Bug in native code: jfieldID class must match object)
|
|
Category
|
hotspot:runtime_system
|
|
Reported Against
|
|
|
Release Fixed
|
hs11(b06),
6u10(b09) (Bug ID:2172487)
, 7(b20) (Bug ID:2177036)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
|
|
Submit Date
|
07-AUG-2007
|
|
Description
|
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 customer ")
#
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)
Posted Date : 2007-08-07 01:59:05.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
The negative test runtime/4474873 tests access to java fields from native code and the bug is all about that in fastdebug we hit guarantee (see Synopsis) before checking the validity of jFieldID. So such check was added which throws exception that is expected. Webrev at http://jruntime.east/~ik199011/my_webrevs/6589875_7.0_webrev/
Posted Date : 2007-08-31 11:25:30.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |