public class Test { final X x; public Test() { x = new X(); } protected static class X { } }