Odd situation for "cannot reference this before supertype constructor has been called"
<p>I'm cannot figure out why this does not compile.</p>

<pre>public class A {
    public class B extends A {
        public B(A a) { }
    }
    void foo() {
        A a = new A();
        new B(a) { };
    }
}</pre>

<pre>A.java:[7,17] cannot reference this before supertype constructor has been called</pre>

<p>Compilation is successful if either of these changes are made:</p>

<ul>
<li> B is private instead of public
<li> line 7 reads "new B(A);" instead of "new B(A) { }"
</ul>

<p>Using javac version: 1.6.0_20</p>
