プライベート・コンストラクタ・キャプチャ

Java Puzzlersから。


public class FooFoo extends Foo {

private final int arg;

public FooFoo() {
this(Bar.func());
}

private FooFoo(int i) {
super(i);
arg = i;
}

}