1.1 --- a/src/share/vm/utilities/constantTag.cpp Mon Mar 23 17:57:13 2020 +0000 1.2 +++ b/src/share/vm/utilities/constantTag.cpp Mon May 05 19:53:00 2014 -0400 1.3 @@ -76,6 +76,20 @@ 1.4 } 1.5 1.6 1.7 +jbyte constantTag::error_value() const { 1.8 + switch (_tag) { 1.9 + case JVM_CONSTANT_UnresolvedClass: 1.10 + return JVM_CONSTANT_UnresolvedClassInError; 1.11 + case JVM_CONSTANT_MethodHandle: 1.12 + return JVM_CONSTANT_MethodHandleInError; 1.13 + case JVM_CONSTANT_MethodType: 1.14 + return JVM_CONSTANT_MethodTypeInError; 1.15 + default: 1.16 + ShouldNotReachHere(); 1.17 + return JVM_CONSTANT_Invalid; 1.18 + } 1.19 +} 1.20 + 1.21 const char* constantTag::internal_name() const { 1.22 switch (_tag) { 1.23 case JVM_CONSTANT_Invalid :