Cross Reference: T6939780.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
diamond
/
T6939780.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
T6939780.java revision 730
2
N/A
/*
2
N/A
* @test /nodynamiccopyright/
2
N/A
* @bug 6939780
2
N/A
*
2
N/A
* @summary add a warning to detect diamond sites
2
N/A
* @author mcimadamore
2
N/A
* @
compile
/
ref
=T6939780.out
T6939780.java
-XDrawDiagnostics -XDfindDiamond
2
N/A
*
2
N/A
*/
2
N/A
2
N/A
class
T6939780
{
2
N/A
2
N/A
void
test
() {
2
N/A
class
Foo
<X
extends
Number
> {
2
N/A
Foo
() {}
2
N/A
Foo
(X x) {}
2
N/A
}
2
N/A
Foo
<
Number
>
f1
=
new
Foo
<
Number
>(
1
);
2
N/A
Foo
<?>
f2
=
new
Foo
<
Number
>();
2
N/A
Foo
<?>
f3
=
new
Foo
<
Integer
>();
2
N/A
Foo
<
Number
>
f4
=
new
Foo
<
Number
>(
1
) {};
2
N/A
Foo
<?>
f5
=
new
Foo
<
Number
>() {};
2
N/A
Foo
<?>
f6
=
new
Foo
<
Integer
>() {};
2
N/A
}
2
N/A
}
2
N/A