347 // we have a name for a wrapping method |
347 // we have a name for a wrapping method |
348 int wrapper_name_len = (int)strlen(wrapper_name); |
348 int wrapper_name_len = (int)strlen(wrapper_name); |
349 TempNewSymbol wrapper_symbol = SymbolTable::probe(wrapper_name, wrapper_name_len); |
349 TempNewSymbol wrapper_symbol = SymbolTable::probe(wrapper_name, wrapper_name_len); |
350 if (wrapper_symbol != NULL) { |
350 if (wrapper_symbol != NULL) { |
351 KlassHandle kh(method->method_holder()); |
351 KlassHandle kh(method->method_holder()); |
352 Method* wrapper_method = Klass::cast(kh())->lookup_method(wrapper_symbol, |
352 Method* wrapper_method = kh()->lookup_method(wrapper_symbol, |
353 method->signature()); |
353 method->signature()); |
354 if (wrapper_method != NULL && !wrapper_method->is_native()) { |
354 if (wrapper_method != NULL && !wrapper_method->is_native()) { |
355 // we found a wrapper method, use its native entry |
355 // we found a wrapper method, use its native entry |
356 method->set_is_prefixed_native(); |
356 method->set_is_prefixed_native(); |
357 return lookup_entry(wrapper_method, in_base_library, THREAD); |
357 return lookup_entry(wrapper_method, in_base_library, THREAD); |