RFR: 8268192: LambdaMetafactory with invokespecial causes VerificationError

liach github.com+7806504+liach at openjdk.java.net
Tue Jun 8 02:26:14 UTC 2021


On Mon, 7 Jun 2021 23:58:44 GMT, Dan Smith <dlsmith at openjdk.org> wrote:

> Small bug fix.

src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java line 191:

> 189:         useImplMethodHandle = (Modifier.isProtected(implInfo.getModifiers()) &&
> 190:                                !VerifyAccess.isSamePackage(implClass, implInfo.getDeclaringClass())) ||
> 191:                                implKind == H_INVOKESPECIAL;

Won't this make regular private instance method calls use condy as well, as they are invokespecial?

-------------

PR: https://git.openjdk.java.net/jdk/pull/4403


More information about the core-libs-dev mailing list