diff -r c39172598323 -r baf9f57c9b46 src/share/vm/utilities/constantTag.cpp --- a/src/share/vm/utilities/constantTag.cpp Mon Mar 23 17:57:13 2020 +0000 +++ b/src/share/vm/utilities/constantTag.cpp Mon May 05 19:53:00 2014 -0400 @@ -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 :