2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 08:09:51 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6295056
|
|
|
|
* @summary Unchecked cast not reported as unsafe
|
2015-05-15 08:09:51 +00:00
|
|
|
* @compile/ref=T6295056.out -XDrawDiagnostics -Xlint:unchecked T6295056.java
|
2007-12-01 00:00:00 +00:00
|
|
|
* @compile T6295056.java
|
|
|
|
*/
|
|
|
|
public class T6295056 {
|
|
|
|
interface Foo {}
|
|
|
|
interface Bar<X> {}
|
|
|
|
|
|
|
|
Object m(Foo f) {
|
|
|
|
return (Bar<Object>)f;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|