Cross Reference: T6946618a.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
6946618
/
T6946618a.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
T6946618a.java revision 561
0
N/A
/*
0
N/A
* @test /nodynamiccopyright/
0
N/A
* @bug 6946618
0
N/A
* @summary sqe test fails:
javac
/
generics
/
NewOnTypeParm
in pit jdk7 b91 in all platforms.
0
N/A
* @author mcimadamore
2362
N/A
* @
compile
/
fail
/
ref
=T6946618a.out -XDrawDiagnostics
T6946618a.java
0
N/A
*/
0
N/A
0
N/A
class
T6946618a
{
0
N/A
static
class
C<T> {
2362
N/A
T
makeT
() {
0
N/A
return
new
T();
//error
2362
N/A
}
0
N/A
}
0
N/A
0
N/A
static
class
D<S> {
0
N/A
C<S>
makeC
() {
0
N/A
return
new
C<S>();
//ok
0
N/A
}
0
N/A
}
0
N/A
}
0
N/A