mcimadamore@254: /* ohair@554: * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. mcimadamore@254: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@254: * mcimadamore@254: * This code is free software; you can redistribute it and/or modify it mcimadamore@254: * under the terms of the GNU General Public License version 2 only, as mcimadamore@254: * published by the Free Software Foundation. mcimadamore@254: * mcimadamore@254: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@254: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@254: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@254: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@254: * accompanied this code). mcimadamore@254: * mcimadamore@254: * You should have received a copy of the GNU General Public License version mcimadamore@254: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@254: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@254: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * questions. mcimadamore@254: */ mcimadamore@254: mcimadamore@254: /* mcimadamore@254: * @test mcimadamore@254: * @bug 6400189 mcimadamore@254: * @summary raw types and inference mcimadamore@254: * @author mcimadamore mcimadamore@254: * @compile T6400189d.java mcimadamore@254: */ mcimadamore@254: mcimadamore@254: import java.util.Iterator; mcimadamore@254: mcimadamore@254: class T6400189c { mcimadamore@254: mcimadamore@254: interface A extends Iterable { mcimadamore@254: Iterator iterator(); mcimadamore@254: } mcimadamore@254: mcimadamore@254: interface A2 extends A { mcimadamore@254: Iterator iterator(); mcimadamore@254: } mcimadamore@254: mcimadamore@254: static abstract class B implements A { mcimadamore@254: public abstract Iterator iterator(); mcimadamore@254: } mcimadamore@254: mcimadamore@254: static abstract class C extends B implements A2 { mcimadamore@254: Iterator test() { mcimadamore@254: return iterator(); mcimadamore@254: } mcimadamore@254: } mcimadamore@254: }