Cross Reference: T6467183a.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
cast
/
6467183
/
T6467183a.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
234
N/A
/*
383
N/A
* @test /nodynamiccopyright/
234
N/A
* @author mcimadamore
234
N/A
* @bug 6467183
234
N/A
* @summary
234
N/A
* @
compile
/
fail
/
ref
=T6467183a.out -Xlint:unchecked -Werror -XDrawDiagnostics
T6467183a.java
234
N/A
*/
234
N/A
234
N/A
class
T6467183a
<T> {
234
N/A
234
N/A
class
A<S> {}
234
N/A
class
B
extends
A<
Integer
> {}
234
N/A
class
C<X>
extends
A<X> {}
234
N/A
234
N/A
void
cast1
(B b) {
234
N/A
Object
o = (A<T>)b;
234
N/A
}
234
N/A
234
N/A
void
cast2
(B b) {
234
N/A
Object
o = (A<?
extends
Number
>)b;
234
N/A
}
234
N/A
234
N/A
void
cast3
(A<
Integer
> a) {
234
N/A
Object
o = (C<?
extends
Number
>)a;
234
N/A
}
234
N/A
234
N/A
void
cast4
(A<
Integer
> a) {
234
N/A
Object
o = (C<?
extends
Integer
>)a;
234
N/A
}
234
N/A
}