RFR: 8213703: LambdaConversionException: Invalid receiver type not a subtype of implementation type interface
Vicente Romero
vicente.romero at oracle.com
Tue Dec 4 03:33:53 UTC 2018
Please review fix for [1] at [2]. Similar issues has been reported and
fixed in the past, see for example [3]. The approach to fix these type
of bugs has been that if the target interface has parameters which are
intersection or union types then we bail out and produce a lambda
instead of a method reference. As in this case we are dealing with a
capture variable it was defeating the our checks.
Thanks,
Vicente
[1] https://bugs.openjdk.java.net/browse/JDK-8213703
[2] http://cr.openjdk.java.net/~vromero/8213703/webrev.00/
[3] https://bugs.openjdk.java.net/browse/JDK-8191655
More information about the compiler-dev
mailing list