--- old/src/share/vm/utilities/constantTag.cpp 2020-08-13 14:44:06.803224259 +0100 +++ new/src/share/vm/utilities/constantTag.cpp 2020-08-13 14:44:06.683223014 +0100 @@ -76,6 +76,20 @@ } +jbyte constantTag::error_value() const { + switch (_tag) { + case JVM_CONSTANT_UnresolvedClass: + return JVM_CONSTANT_UnresolvedClassInError; + case JVM_CONSTANT_MethodHandle: + return JVM_CONSTANT_MethodHandleInError; + case JVM_CONSTANT_MethodType: + return JVM_CONSTANT_MethodTypeInError; + default: + ShouldNotReachHere(); + return JVM_CONSTANT_Invalid; + } +} + const char* constantTag::internal_name() const { switch (_tag) { case JVM_CONSTANT_Invalid :