hotspot/src/share/vm/prims/methodHandles.cpp
changeset 10004 190e88f7edd1
parent 9980 a330de5dea17
child 10008 d84de97ad847
equal deleted inserted replaced
9982:edcf2d7e7b84 10004:190e88f7edd1
   627   defc->link_class(CHECK);  // possible safepoint
   627   defc->link_class(CHECK);  // possible safepoint
   628 
   628 
   629   // convert the external string name to an internal symbol
   629   // convert the external string name to an internal symbol
   630   TempNewSymbol name = java_lang_String::as_symbol_or_null(name_str());
   630   TempNewSymbol name = java_lang_String::as_symbol_or_null(name_str());
   631   if (name == NULL)  return;  // no such name
   631   if (name == NULL)  return;  // no such name
       
   632   if (name == vmSymbols::class_initializer_name())
       
   633     return; // illegal name
   632 
   634 
   633   Handle polymorphic_method_type;
   635   Handle polymorphic_method_type;
   634   bool polymorphic_signature = false;
   636   bool polymorphic_signature = false;
   635   if ((flags & ALL_KINDS) == IS_METHOD &&
   637   if ((flags & ALL_KINDS) == IS_METHOD &&
   636       (defc() == SystemDictionary::MethodHandle_klass() &&
   638       (defc() == SystemDictionary::MethodHandle_klass() &&