Cross Reference: T6943278.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
inference
/
6943278
/
T6943278.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
T6943278.java revision 827
827
N/A
/**
827
N/A
*
@test
/nodynamiccopyright/
827
N/A
*
@bug
6943278
827
N/A
*
@summary
spurious error message for inference and type-variable with erroneous bound
827
N/A
*
@compile
/
fail
/
ref
=T6943278.out -XDrawDiagnostics -Xlint:unchecked
T6943278.java
827
N/A
*/
827
N/A
class
T6943278
<X
extends
Number
&
NonExistentInterface
> {
827
N/A
<X>
T6943278
<X> m() {
return
null
;}
827
N/A
<X
extends
Number
&
NonExistentInterface
>
T6943278
<X> m(X x) {
return
null
;}
827
N/A
T6943278
<?>
f1
= m();
827
N/A
T6943278
<?>
f2
= m(
""
);
827
N/A
}