1/* 2 * @test /nodynamiccopyright/ 3 * @bug 6295056 4 * @summary Unchecked cast not reported as unsafe 5 * @compile/ref=T6295056.out -XDrawDiagnostics -Xlint:unchecked T6295056.java 6 * @compile T6295056.java 7 */ 8public class T6295056 { 9 interface Foo {} 10 interface Bar<X> {} 11 12 Object m(Foo f) { 13 return (Bar<Object>)f; 14 } 15 16} 17