T6946618a.java revision 561
0N/A/*
0N/A * @test /nodynamiccopyright/
0N/A * @bug 6946618
0N/A * @summary sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms.
0N/A * @author mcimadamore
2362N/A * @compile/fail/ref=T6946618a.out -XDrawDiagnostics T6946618a.java
0N/A */
0N/A
0N/Aclass T6946618a {
0N/A static class C<T> {
2362N/A T makeT() {
0N/A return new T(); //error
2362N/A }
0N/A }
0N/A
0N/A static class D<S> {
0N/A C<S> makeC() {
0N/A return new C<S>(); //ok
0N/A }
0N/A }
0N/A}
0N/A