提交 084d53b3 编写于 作者: C coleenp

8159515: Improve indy validation

Reviewed-by: jrose, hseigel, vlivanov, bmoloden, ctornqvi, mschoene
上级 0bb2a251
...@@ -2626,7 +2626,6 @@ JVM_ENTRY(const char*, JVM_GetCPMethodNameUTF(JNIEnv *env, jclass cls, jint cp_i ...@@ -2626,7 +2626,6 @@ JVM_ENTRY(const char*, JVM_GetCPMethodNameUTF(JNIEnv *env, jclass cls, jint cp_i
switch (cp->tag_at(cp_index).value()) { switch (cp->tag_at(cp_index).value()) {
case JVM_CONSTANT_InterfaceMethodref: case JVM_CONSTANT_InterfaceMethodref:
case JVM_CONSTANT_Methodref: case JVM_CONSTANT_Methodref:
case JVM_CONSTANT_NameAndType: // for invokedynamic
return cp->uncached_name_ref_at(cp_index)->as_utf8(); return cp->uncached_name_ref_at(cp_index)->as_utf8();
default: default:
fatal("JVM_GetCPMethodNameUTF: illegal constant"); fatal("JVM_GetCPMethodNameUTF: illegal constant");
...@@ -2644,7 +2643,6 @@ JVM_ENTRY(const char*, JVM_GetCPMethodSignatureUTF(JNIEnv *env, jclass cls, jint ...@@ -2644,7 +2643,6 @@ JVM_ENTRY(const char*, JVM_GetCPMethodSignatureUTF(JNIEnv *env, jclass cls, jint
switch (cp->tag_at(cp_index).value()) { switch (cp->tag_at(cp_index).value()) {
case JVM_CONSTANT_InterfaceMethodref: case JVM_CONSTANT_InterfaceMethodref:
case JVM_CONSTANT_Methodref: case JVM_CONSTANT_Methodref:
case JVM_CONSTANT_NameAndType: // for invokedynamic
return cp->uncached_signature_ref_at(cp_index)->as_utf8(); return cp->uncached_signature_ref_at(cp_index)->as_utf8();
default: default:
fatal("JVM_GetCPMethodSignatureUTF: illegal constant"); fatal("JVM_GetCPMethodSignatureUTF: illegal constant");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册