636N/A/*
636N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
636N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
636N/A *
636N/A * This code is free software; you can redistribute it and/or modify it
636N/A * under the terms of the GNU General Public License version 2 only, as
636N/A * published by the Free Software Foundation.
636N/A *
636N/A * This code is distributed in the hope that it will be useful, but WITHOUT
636N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
636N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
636N/A * version 2 for more details (a copy is included in the LICENSE file that
636N/A * accompanied this code).
636N/A *
636N/A * You should have received a copy of the GNU General Public License version
636N/A * 2 along with this work; if not, write to the Free Software Foundation,
636N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
636N/A *
636N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
636N/A * or visit www.oracle.com if you need additional information or have any
636N/A * questions.
636N/A */
636N/A
636N/A/*
636N/A * @test
636N/A * @bug 6886247
636N/A * @author Maurizio Cimadamore
636N/A * @summary regression: javac crashes with an assertion error in Attr.java
636N/A * @compile/fail/ref=T6886247_2.out -XDrawDiagnostics T6886247_2.java
636N/A */
636N/A
636N/Aclass Outer<E> {
636N/A
636N/A public void method(Outer<?>.Inner inner) {
636N/A E entry = inner.getE();
636N/A }
636N/A
636N/A class Inner {
636N/A E getE() {return null;}
636N/A }
636N/A}