diff -r ef8a98bc71f8 -r c4d9d1b08e2e src/hotspot/share/prims/jvm.cpp --- a/src/hotspot/share/prims/jvm.cpp Wed Jan 31 10:55:49 2018 -0800 +++ b/src/hotspot/share/prims/jvm.cpp Fri Sep 08 10:46:46 2017 -0700 @@ -2212,6 +2212,8 @@ result = JVM_CONSTANT_MethodType; } else if (tag.is_method_handle_in_error()) { result = JVM_CONSTANT_MethodHandle; + } else if (tag.is_dynamic_constant_in_error()) { + result = JVM_CONSTANT_Dynamic; } return result; }