Cross Reference: T7034511b.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
7034511
/
T7034511b.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
969
N/A
/*
969
N/A
* @test /nodynamiccopyright/
995
N/A
* @ignore backing out 7034511, see 7040883
995
N/A
* @bug 7034511 7040883
969
N/A
* @summary Loophole in typesafety
969
N/A
* @
compile
/
fail
/
ref
=T7034511b.out -XDrawDiagnostics
T7034511b.java
969
N/A
*/
969
N/A
969
N/A
class
T7034511b
{
969
N/A
static
class
MyList
<E> {
969
N/A
E
toArray
(E[] e) {
return
null
; }
969
N/A
}
969
N/A
969
N/A
void
test
(
MyList
<?>
ml
,
Object
o[]) {
969
N/A
ml
.
toArray
(o);
969
N/A
}
969
N/A
}