Cross Reference: T6838943.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
inference
/
6838943
/
T6838943.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
845
N/A
/**
845
N/A
*
@test
/nodynamiccopyright/
845
N/A
*
@bug
6838943
845
N/A
*
@summary
inference: javac is not handling type-variable substitution properly
845
N/A
*
@compile
/
fail
/
ref
=T6838943.out -XDrawDiagnostics
T6838943.java
845
N/A
*/
845
N/A
class
T6838943
{
845
N/A
static
class
A<X> {}
845
N/A
static
class
B {}
845
N/A
static
class
C<X> {
845
N/A
<Z>
void
m(X x, Z z) {
845
N/A
C<A<Z>> c =
new
C<A<Z>>();
845
N/A
c.m(
new
A<B>(),
new
B());
//should fail
845
N/A
}
845
N/A
}
845
N/A
}