src/hotspot/share/prims/nativeLookup.cpp
changeset 59056 15936b142f86
parent 59016 3b9eeae66fa0
equal deleted inserted replaced
59055:57ad70bcf06c 59056:15936b142f86
   378       Klass* k = method->method_holder();
   378       Klass* k = method->method_holder();
   379       Method* wrapper_method = k->lookup_method(wrapper_symbol, method->signature());
   379       Method* wrapper_method = k->lookup_method(wrapper_symbol, method->signature());
   380       if (wrapper_method != NULL && !wrapper_method->is_native()) {
   380       if (wrapper_method != NULL && !wrapper_method->is_native()) {
   381         // we found a wrapper method, use its native entry
   381         // we found a wrapper method, use its native entry
   382         method->set_is_prefixed_native();
   382         method->set_is_prefixed_native();
   383         return lookup_entry(wrapper_method, in_base_library, THREAD);
   383         return lookup_entry(methodHandle(THREAD, wrapper_method), in_base_library, THREAD);
   384       }
   384       }
   385     }
   385     }
   386   }
   386   }
   387 #endif // INCLUDE_JVMTI
   387 #endif // INCLUDE_JVMTI
   388   return NULL;
   388   return NULL;