RFR: 8059632: Method reference compilation uses incorrect qualifying type
Srikanth Adayapalam
sadayapalam at openjdk.org
Fri Oct 21 09:45:35 UTC 2022
On Fri, 21 Oct 2022 09:31:11 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:
> Align with JLS 13.1 (the qualifying class or interface of the method invocation) by
> referring to the type of the receiver rather than the type of the declaring
> class/interface in the bootstrap attribute
test/langtools/tools/javac/lambda/methodReference/8059632/MethodRefQualifyingTypeTest.java line 75:
> 73: // per JLS 13.1 (see "the qualifying type of the method invocation").
> 74:
> 75: Class.forName("MethodRefQualifyingTypeTest$MethodInvoker").getMethod("invoke").invoke(null);
This test is actually derived from a "failing" JCK test: lang/LMBD/lmbd171/lmbd17101m51/lmbd17101m51.html.lmbd17101m51 that incorrectly asserts that there be a linkage error
-------------
PR: https://git.openjdk.org/jdk/pull/10809
More information about the compiler-dev
mailing list