T7034019b.java revision 970
970N/A/*
970N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
970N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
970N/A *
970N/A * This code is free software; you can redistribute it and/or modify it
970N/A * under the terms of the GNU General Public License version 2 only, as
970N/A * published by the Free Software Foundation.
970N/A *
970N/A * This code is distributed in the hope that it will be useful, but WITHOUT
970N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
970N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
970N/A * version 2 for more details (a copy is included in the LICENSE file that
970N/A * accompanied this code).
970N/A *
970N/A * You should have received a copy of the GNU General Public License version
970N/A * 2 along with this work; if not, write to the Free Software Foundation,
970N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
970N/A *
970N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
970N/A * or visit www.oracle.com if you need additional information or have any
970N/A * questions.
970N/A */
970N/A
970N/A/*
970N/A * @test
970N/A * @bug 7034019
970N/A * @summary ClassCastException in javac with conjunction types
970N/A *
970N/A * @compile T7034019b.java
970N/A */
970N/A
970N/Aclass T7034019a {
970N/A interface A {
970N/A <T> void foo();
970N/A }
970N/A
970N/A interface B {
970N/A void foo();
970N/A }
970N/A
970N/A static abstract class E implements A,B {
970N/A void test() {
970N/A foo();
970N/A }
970N/A }
970N/A}