Type inference problem with JDK 8 Build 82

Remi Forax forax at univ-mlv.fr
Wed Apr 3 07:41:13 PDT 2013

On 04/03/2013 04:39 PM, Gernot Neppert wrote:
> Hi,
[ ... ]

> Here's a condensed version of the source that causes the problem:
> interface Expression<S,T> {
>      <U> Expression<S,? extends U> cast(Class<U> target);
> }

It's not related to lambda but please,
never use a ? extends/? super in a return type,
or you will bother you user to death because they also will
have to write wildcards.


More information about the lambda-dev mailing list