358N/A/*
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
358N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
358N/A *
358N/A * This code is free software; you can redistribute it and/or modify it
358N/A * under the terms of the GNU General Public License version 2 only, as
358N/A * published by the Free Software Foundation.
358N/A *
358N/A * This code is distributed in the hope that it will be useful, but WITHOUT
358N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
358N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
358N/A * version 2 for more details (a copy is included in the LICENSE file that
358N/A * accompanied this code).
358N/A *
358N/A * You should have received a copy of the GNU General Public License version
358N/A * 2 along with this work; if not, write to the Free Software Foundation,
358N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
358N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
358N/A */
358N/A
358N/A/*
358N/A * @test
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 T6521805c.java
358N/A */
358N/A
358N/Aclass T6521805c {
358N/A
358N/A static class Outer {
358N/A T6521805c this$0() { return null;}
358N/A }
358N/A
358N/A public class Inner extends Outer {
358N/A public void foo() {
358N/A this$0();
358N/A }
358N/A }
358N/A}