7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives

Reviewed-by: dholmes, dcubed
This commit is contained in:
Rickard Bäckman 2012-08-28 15:15:29 +02:00
parent 5f4a2405a7
commit 228b4f6d7f

View File

@ -1135,7 +1135,7 @@ static jint invoke_primitive_field_callback_for_static_fields
// get offset and field value
int offset = field->field_offset();
address addr = (address)klass + offset;
address addr = (address)klass->java_mirror() + offset;
jvalue value;
copy_to_jvalue(&value, addr, value_type);