Cross Reference: Neg11.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
diamond
/
neg
/
Neg11.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 unresolved symbols doesn't cause spurious diamond diagnostics
536
N/A
* @author mcimadamore
536
N/A
* @
compile
/
fail
/
ref
=Neg11.out
Neg11.java
-XDrawDiagnostics
536
N/A
*
536
N/A
*/
536
N/A
536
N/A
class
Neg11
{
536
N/A
536
N/A
void
test
() {
536
N/A
class
Foo
<X
extends
Number
> { }
536
N/A
Foo
<?>
f1
=
new
UndeclaredName
<>();
//this is deliberate: aim is to test erroneous path
536
N/A
Foo
<?>
f2
=
new
UndeclaredName
<>() {};
//this is deliberate: aim is to test erroneous path
536
N/A
}
536
N/A
}