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
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
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