Does that help Edit I just tried your example on IntelliJ (sorry, I don't have NetBeans installed) and it generates the proper code and runs fine:
.addListener((ov, t, t1) -> System.out.println(t1));
C#: No implicit conversion between 'lambda expression' and 'lambda expression'?
By : Zaerl
Date : March 29 2020, 07:55 AM
will help you The type of the conditional expression has to be inferred as a whole - and lambda expressions always have to be converted to a specific delegate or expression tree type. In your latter two examples, the compiler knows what it's trying to convert the lambda expression to. In the first example, it tries to work out the type of the whole conditional expression first.