27N/A/*
553N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
27N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
27N/A *
27N/A * This code is free software; you can redistribute it and/or modify it
27N/A * under the terms of the GNU General Public License version 2 only, as
27N/A * published by the Free Software Foundation.
27N/A *
27N/A * This code is distributed in the hope that it will be useful, but WITHOUT
27N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
27N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
27N/A * version 2 for more details (a copy is included in the LICENSE file that
27N/A * accompanied this code).
27N/A *
27N/A * You should have received a copy of the GNU General Public License version
27N/A * 2 along with this work; if not, write to the Free Software Foundation,
27N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27N/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.
27N/A */
27N/A
27N/A/*
27N/A * @test
27N/A *
27N/A * @bug 6657499
27N/A * @summary generics: javac 1.6.0 fails to compile class with inner class
27N/A * @author Maurizio Cimadamore
27N/A *
27N/A */
27N/A
27N/Apublic class T6657499<T> {
27N/A T t;
27N/A public T test() {
27N/A class Local {private T t;};
27N/A class Local2 {T m() {return t;}};
27N/A T t3 = new Local().t;
27N/A return new Local2().m();
27N/A }
27N/A public static void main(String[] args) {
27N/A String s = new T6657499<String>().test();
27N/A }
27N/A}