1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/generics/6946618/T6946618b.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,21 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6946618 1.7 + * @summary sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms. 1.8 + * @author mcimadamore 1.9 + * @compile/fail/ref=T6946618b.out -XDrawDiagnostics T6946618b.java 1.10 + */ 1.11 + 1.12 +class T6946618b { 1.13 + static class C<T> { 1.14 + T makeT() { 1.15 + return new T<>(); //error 1.16 + } 1.17 + } 1.18 + 1.19 + static class D<S> { 1.20 + C<S> makeC() { 1.21 + return new C<>(); //ok 1.22 + } 1.23 + } 1.24 +}