Cross Reference: Neg06.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
diamond
/
neg
/
Neg06.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
536
N/A
/*
536
N/A
* @test /nodynamiccopyright/
913
N/A
* @bug 6939620 7020044
536
N/A
*
913
N/A
* @summary Check that diamond works where LHS is supertype of RHS (nilary constructor)
536
N/A
* @author mcimadamore
536
N/A
* @
compile
/
fail
/
ref
=Neg06.out
Neg06.java
-XDrawDiagnostics
536
N/A
*
536
N/A
*/
536
N/A
536
N/A
class
Neg06
{
536
N/A
536
N/A
static
class
CSuperFoo
<X> {}
536
N/A
static
class
CFoo
<X
extends
Number
>
extends
CSuperFoo
<X> {}
536
N/A
536
N/A
CSuperFoo
<
String
>
csf1
=
new
CFoo
<>();
536
N/A
}