Mercurial > hg > graal-compiler
diff src/share/vm/prims/methodHandles.cpp @ 3451:38fa55e5e792
7055355: JSR 292: crash while throwing WrongMethodTypeException
Reviewed-by: jrose, twisti, bdelsart
author | never |
---|---|
date | Thu, 16 Jun 2011 13:46:55 -0700 |
parents | a9b8b43b115f |
children | 81d815b05abb |
line wrap: on
line diff
--- a/src/share/vm/prims/methodHandles.cpp Tue Jun 14 12:25:05 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;