RFR: 8369517: Compilation mismatch for equivalent lambda and method reference [v2]

Vicente Romero vromero at openjdk.org
Fri Oct 10 01:02:03 UTC 2025


On Thu, 9 Oct 2025 22:14:37 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fixing issues
>
> test/langtools/tools/javac/lambda/methodReference/ResultTypeNotBeingCapturedTest.java line 43:
> 
>> 41: 
>> 42:     static X<X<?>> methodRef() {
>> 43:         var s = (String)create(Main::makeX);
> 
> Suggestion:
> 
>         var s = (String)create(ResultTypeNotBeingCapturedTest::makeX);
> 
> Please also update the .out output, which should be more consistent after this fix.

yep thanks I saw that too, copy paste bug :)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27737#discussion_r2418273459


More information about the compiler-dev mailing list