Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.5.8
-
None
-
None
-
None
Description
Given this script:
import java.util.function.Supplier class Foo { Foo(Supplier<?> supplier) { } } class Bar extends Foo { Bar() { super { null } } } new Bar()
I'd expect everything to be ok, but the compiler complains that "Constructor call must be the first statement in a constructor".
Using super({ null }) instead works fine.