Lambda expression and method overloading doubts
I think you found this bug in the compiler: JDK-8029718 (or this similar one in Eclipse: 434642). Compare to JLS §15.12.2.1. Identify Potentially Applicable Methods: … A lambda expression (§15.27) is potentially compatible with a functional interface type (§9.8) if all of the following are true: The arity of the target type’s function type is … Read more