--- old/src/hotspot/share/prims/jniCheck.cpp 2019-03-11 14:27:03.470354363 +0100 +++ new/src/hotspot/share/prims/jniCheck.cpp 2019-03-11 14:27:03.262354366 +0100 @@ -273,7 +273,8 @@ if (!id->find_local_field(&fd)) ReportJNIFatalError(thr, fatal_static_field_not_found); if ((fd.field_type() != ftype) && - !(fd.field_type() == T_ARRAY && ftype == T_OBJECT)) { + !(fd.field_type() == T_ARRAY && ftype == T_OBJECT) && + !(fd.field_type() == T_VALUETYPE && ftype == T_OBJECT)) { ReportJNIFatalError(thr, fatal_static_field_mismatch); } } @@ -310,7 +311,8 @@ ReportJNIFatalError(thr, fatal_instance_field_not_found); if ((fd.field_type() != ftype) && - !(fd.field_type() == T_ARRAY && ftype == T_OBJECT)) { + !(fd.field_type() == T_ARRAY && ftype == T_OBJECT) && + !(fd.field_type() == T_VALUETYPE && ftype == T_OBJECT)) { ReportJNIFatalError(thr, fatal_instance_field_mismatch); } }