Mon, 13 Dec 2010 14:56:50 +0000
7006109: Add test library to simplify the task of writing automated type-system tests
Summary: Types.java needs to be more stress-tested
Reviewed-by: jjg
mcimadamore@562 | 1 | /* |
mcimadamore@562 | 2 | * @test /nodynamiccopyright/ |
jjg@598 | 3 | * @bug 6946618 6968497 |
mcimadamore@562 | 4 | * @summary sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms. |
mcimadamore@562 | 5 | * @author mcimadamore |
mcimadamore@562 | 6 | * @compile/fail/ref=T6946618c.out -XDrawDiagnostics T6946618c.java |
mcimadamore@562 | 7 | */ |
mcimadamore@562 | 8 | |
mcimadamore@562 | 9 | class T6946618c { |
mcimadamore@562 | 10 | static class C<T> { } |
mcimadamore@562 | 11 | |
mcimadamore@562 | 12 | void test() { |
mcimadamore@562 | 13 | C<?> c1 = new C<? extends String>(); |
mcimadamore@562 | 14 | C<?> c2 = new C<? super String>(); |
mcimadamore@562 | 15 | C<?> c3 = new C<?>(); |
mcimadamore@562 | 16 | } |
mcimadamore@562 | 17 | } |