Cross Reference: Neg07.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
diamond
/
neg
/
Neg07.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 (1-ary constructor)
536
N/A
* @author mcimadamore
536
N/A
* @
compile
/
fail
/
ref
=Neg07.out
Neg07.java
-XDrawDiagnostics
536
N/A
*
536
N/A
*/
536
N/A
536
N/A
class
Neg07
{
536
N/A
static
class
SuperFoo
<X> {}
536
N/A
static
class
Foo
<X
extends
Number
>
extends
SuperFoo
<X> {
536
N/A
Foo
(X x) {}
536
N/A
}
536
N/A
536
N/A
SuperFoo
<
String
>
sf1
=
new
Foo
<>(
""
);
536
N/A
}