langtools/test/tools/javac/generics/7034019/T7034019d.java
author mcimadamore
Tue, 12 Apr 2011 20:58:06 -0700
changeset 9302 13a19cf713fd
permissions -rw-r--r--
7034019: ClassCastException in javac with conjunction types Summary: Resolve.mostSpecific doesn't handle case of raw override Reviewed-by: dlsmith

/*
 * @test /nodynamiccopyright/
 * @bug 7034019
 * @summary ClassCastException in javac with conjunction types
 *
 * @compile/fail/ref=T7034019d.out -XDrawDiagnostics T7034019d.java
 */

class T7034019c {
    interface A {
        abstract <T extends Number> T foo();
    }

    interface B {
        abstract <T> T foo();
    }

    static abstract class E implements A,B {
        void test() {
            foo();
        }
    }
}