comparison src/share/vm/prims/methodHandles.cpp @ 12974:d95eca175eff

8023004: JSR 292: java.lang.RuntimeException: Original target method was called. Reviewed-by: jrose
author sspitsyn
date Wed, 23 Oct 2013 20:15:24 +0400
parents ac9cb1d5a202
children 096c224171c4 c4b78cbea876
comparison
equal deleted inserted replaced
12973:68f07c29521b 12974:d95eca175eff
1192 if (vmtarget == NULL) { 1192 if (vmtarget == NULL) {
1193 x = NULL; 1193 x = NULL;
1194 } else if (vmtarget->is_klass()) { 1194 } else if (vmtarget->is_klass()) {
1195 x = ((Klass*) vmtarget)->java_mirror(); 1195 x = ((Klass*) vmtarget)->java_mirror();
1196 } else if (vmtarget->is_method()) { 1196 } else if (vmtarget->is_method()) {
1197 Handle mname2 = MethodHandles::new_MemberName(CHECK_NULL); 1197 x = mname();
1198 CallInfo info((Method*)vmtarget);
1199 x = MethodHandles::init_method_MemberName(mname2, info);
1200 } 1198 }
1201 result->obj_at_put(1, x); 1199 result->obj_at_put(1, x);
1202 return JNIHandles::make_local(env, result()); 1200 return JNIHandles::make_local(env, result());
1203 } 1201 }
1204 JVM_END 1202 JVM_END