lambda reference to inner class in base class causes LambdaConversionException

2014-06-19 Thread Remi Forax
I've just take a look to bug 8047341 [1] and I think it's a javac bug and not a bug in the lambda meta-factory, moreover, Eclipse generates a code which doesn't throw an exception at runtime. In list.stream().forEach(TestString::new), TestString::new reference the constructor of TestString

Re: lambda reference to inner class in base class causes LambdaConversionException

2014-06-19 Thread Maurizio Cimadamore
On 19/06/14 13:53, Remi Forax wrote: as you can see, javac generate an invokedynamic call with a Foo instead of a FooBase which I think is the correct behavior. You mean the other way around? Maurizio

Re: lambda reference to inner class in base class causes LambdaConversionException

2014-06-19 Thread Remi Forax
On 06/19/2014 03:00 PM, Maurizio Cimadamore wrote: On 19/06/14 13:53, Remi Forax wrote: as you can see, javac generate an invokedynamic call with a Foo instead of a FooBase which I think is the correct behavior. You mean the other way around? oops, s/the correct/not the correct