diff -r 83352b2e2ebc -r 97bec6ab1227 test/tools/javac/generics/7151802/T7151802.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/generics/7151802/T7151802.java Fri Mar 09 17:10:56 2012 +0000 @@ -0,0 +1,43 @@ +/* + * @test /nodynamiccopyright/ + * @bug 7151802 + * @summary compiler update caused sqe test failed + * @compile/fail/ref=T7151802.out -Werror -Xlint:unchecked -XDrawDiagnostics T7151802.java + */ +class T7151802 { + static class Foo { } + + static class SubFoo extends Foo { } + + //generic - bound - arg - non-slilent + > void get1(Z fz) { } + void test1(Foo foo) { get1(foo); } + + //generic - bound - arg - silent + > void get2(Z fz) { } + void test2(Foo foo) { get2(foo); } + + //generic - nobound - arg - non-slilent + void get3(Foo fz) { } + void test(Foo foo) { get3(foo); } + + //generic - nobound - arg - slilent + void get4(Foo fz) { } + void test4(Foo foo) { get4(foo); } + + //generic - bound - ret - non-slilent + > Z get5() { return null; } + void test5() { SubFoo sf = get5(); } + + //generic - bound - ret - slilent + static > Z get6() { return null; } + void test6() { SubFoo sf = get6(); } + + //nogeneric - nobound - arg - non-slilent + void get7(Foo fz) { } + void test7(Foo foo) { get7(foo); } + + //nogeneric - nobound - arg - slilent + static void get8(Foo fz) { } + void test8(Foo foo) { get8(foo); } +}