提交 701155e9 编写于 作者: R rfield

8024260: 10 closed/java/lang/invoke/* tests failing after overhaul to MethodHandleInfo

Reviewed-by: vlivanov, briangoetz
Contributed-by: john.r.rose@oracle.com
上级 75bdf1d4
......@@ -1286,7 +1286,17 @@ assertEquals("[three, thee, tee]", asListFix.invoke((Object)argv).toString());
/*non-public*/
MethodHandle withInternalMemberName(MemberName member) {
return MethodHandleImpl.makeWrappedMember(this, member);
if (member != null) {
return MethodHandleImpl.makeWrappedMember(this, member);
} else if (internalMemberName() == null) {
// The required internaMemberName is null, and this MH (like most) doesn't have one.
return this;
} else {
// The following case is rare. Mask the internalMemberName by wrapping the MH in a BMH.
MethodHandle result = rebind();
assert (result.internalMemberName() == null);
return result;
}
}
/*non-public*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册