358N/A/*
383N/A * @test /nodynamiccopyright/
358N/A * @bug 6521805
358N/A * @summary Regression: JDK5/JDK6 javac allows write access to outer class reference
358N/A * @author mcimadamore
358N/A *
358N/A * @compile/fail/ref=T6521805d.out T6521805d.java -XDrawDiagnostics
358N/A */
358N/A
358N/Aclass T6521805 {
358N/A
358N/A static class Inner extends T6521805.Outer {
358N/A
358N/A Inner(T6521805 t) {
358N/A t.super();
358N/A }
358N/A
358N/A T6521805 this$0 = null;
358N/A
358N/A public void foo() {
358N/A this$0 = new T6521805();
358N/A }
358N/A }
358N/A
358N/A class Outer {}
358N/A
358N/A}