RFR: 8213703: LambdaConversionException: Invalid receiver type not a subtype of implementation type interface
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Dec 5 10:48:27 UTC 2018
Looks good!
Maurizio
On 04/12/2018 03:33, Vicente Romero wrote:
> 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