SAM conversion of extended interfaces
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Aug 18 08:15:03 PDT 2010
On 18/08/10 15:52, Thomas Jung wrote:
> 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){};
> }
>
Nice one, thanks for the headsup.
The routine that checks for well-formedness of SAM interfaces should
obviously skip defender methods...
Maurizio
> A t = #{value}; //does not compile
>
> Error message: "invalid target type A for lambda conversion".
>
> Thomas
>
>
More information about the lambda-dev
mailing list