778N/A/*
778N/A * @test /nodynamiccopyright/
778N/A * @bug 7005095
778N/A * @summary Cast: compile reject sensible cast from final class to interface
778N/A * @compile/fail/ref=T7005095neg.out -XDrawDiagnostics T7005095neg.java
778N/A */
778N/A
778N/Aclass T7005095pos<T extends Integer> {
778N/A interface Foo<T> {}
778N/A
778N/A static final class FooImpl implements Foo<String> {}
778N/A
778N/A Object o = (Foo<T>) new FooImpl();
778N/A}