Invalid method reference with generics
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Jul 17 16:53:52 PDT 2013
On 17/07/13 22:10, Nick Williams wrote:
>
> On Jun 29, 2013, at 7:00 AM, maurizio cimadamore wrote:
>
>> This code:
>>
>> interface ApplicationListener<E extends ApplicationEvent> {
>> void onApplicationEvent(E e);
>> }
>>
>> class ApplicationEvent { }
>>
>> class Event1 extends ApplicationEvent { }
>>
>> class Test {
>> public static <E extends ApplicationEvent> void
>> register(ApplicationListener<E> listener) { }
>> public void onEvent1(Event1 event1) { }
>> public void initialize() {
>> register(this::onEvent1);
>> }
>> }
>>
>> Works fine against the latest lambda compiler (after yesterday push).
>
> Do you know approximately when this (and other recent) lambda changes
> will make their way into the standard JDK8 build at
> https://jdk8.java.net/download.html?
>
> Thanks,
>
> Nick
>
Couple of weeks
Maurizio
More information about the lambda-dev
mailing list