|
Java example source code file (T7005095neg.java)
The T7005095neg.java Java example source code/* * @test /nodynamiccopyright/ * @bug 7005095 * @summary Cast: compile reject sensible cast from final class to interface * @compile/fail/ref=T7005095neg.out -XDrawDiagnostics T7005095neg.java */ class T7005095pos<T extends Integer> { interface Foo<T> {} static final class FooImpl implements Foo<String> {} Object o = (Foo<T>) new FooImpl(); } Other Java examples (source code examples)Here is a short list of links related to this Java T7005095neg.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.