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