SAM conversion of extended interfaces

Thomas Jung thomas.andreas.jung at googlemail.com
Wed Aug 18 07:52:48 PDT 2010


Hi,

conversion to SAM types does not work for extended interfaces like A:

interface A{
	Object m();
	extension void n() default E.n;  //works with if this line is commented out
}

class E{
	public static void n(A a){};
}

A t = #{value}; //does not compile

Error message: "invalid target type A for lambda conversion".

Thomas


More information about the lambda-dev mailing list