< prev index next >

src/hotspot/share/prims/jni.cpp

Print this page
rev 55090 : secret-sfac

*** 518,528 **** DT_RETURN_MARK(ToReflectedMethod, jobject, (const jobject&)ret); methodHandle m (THREAD, Method::resolve_jmethod_id(method_id)); assert(m->is_static() == (isStatic != 0), "jni_ToReflectedMethod access flags doesn't match"); oop reflection_method; ! if (m->is_initializer()) { reflection_method = Reflection::new_constructor(m, CHECK_NULL); } else { reflection_method = Reflection::new_method(m, false, CHECK_NULL); } ret = JNIHandles::make_local(env, reflection_method); --- 518,528 ---- DT_RETURN_MARK(ToReflectedMethod, jobject, (const jobject&)ret); methodHandle m (THREAD, Method::resolve_jmethod_id(method_id)); assert(m->is_static() == (isStatic != 0), "jni_ToReflectedMethod access flags doesn't match"); oop reflection_method; ! if (m->is_object_constructor()) { reflection_method = Reflection::new_constructor(m, CHECK_NULL); } else { reflection_method = Reflection::new_method(m, false, CHECK_NULL); } ret = JNIHandles::make_local(env, reflection_method);
< prev index next >