Cross Reference: T7005095neg.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
cast
/
7005095
/
T7005095neg.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
778
N/A
/*
778
N/A
* @test /nodynamiccopyright/
778
N/A
* @bug 7005095
778
N/A
* @summary Cast: compile reject sensible cast from final class to interface
778
N/A
* @
compile
/
fail
/
ref
=T7005095neg.out -XDrawDiagnostics
T7005095neg.java
778
N/A
*/
778
N/A
778
N/A
class
T7005095pos
<T
extends
Integer
> {
778
N/A
interface
Foo
<T> {}
778
N/A
778
N/A
static
final
class
FooImpl
implements
Foo
<
String
> {}
778
N/A
778
N/A
Object
o = (
Foo
<T>)
new
FooImpl
();
778
N/A
}