Mercurial > hg > graal-jvmci-8
diff src/share/vm/prims/methodHandles.cpp @ 3781:d83ac25d0304
7055355: JSR 292: crash while throwing WrongMethodTypeException
Reviewed-by: jrose, twisti, bdelsart
author | never |
---|---|
date | Thu, 16 Jun 2011 13:46:55 -0700 |
parents | f8c9417e3571 |
children | 81d815b05abb |
line wrap: on
line diff
--- a/src/share/vm/prims/methodHandles.cpp Wed Jun 15 10:20:03 2011 -0700 +++ b/src/share/vm/prims/methodHandles.cpp Thu Jun 16 13:46:55 2011 -0700 @@ -629,6 +629,8 @@ // convert the external string name to an internal symbol TempNewSymbol name = java_lang_String::as_symbol_or_null(name_str()); if (name == NULL) return; // no such name + if (name == vmSymbols::class_initializer_name()) + return; // illegal name Handle polymorphic_method_type; bool polymorphic_signature = false;