Problem of defender methods with generic methods

Howard Lovatt howard.lovatt at gmail.com
Mon Nov 15 14:06:58 PST 2010


@Ali,

The best way to do this is to introduce an extra interface as you have
suggested, you need to encode the information in a type (hence you
need an extra type). Unfortunately you don't like this solution.
However I think this is a good solution consistent with the rest of
Java and in particular the concept of interfaces and I am therefore
happy to see the proposed behaviour for extension methods.

  -- Howard.


More information about the lambda-dev mailing list