Community
Participate
Working Groups
3.1M4 package p; class TestArray1<T1 extends Object> { public Object[] data= new Object[1]; public T1 get0(){ return (T1)data[0]; //expected warning here } }
possibly dup of bug 78591
With HEAD contents, we return: ---------- 1. WARNING in c:\tests_sources\X.java (at line 5) return (T1)data[0]; //expected warning here ^^^^^^^^^^^ Type safety: The cast from Object to T1 is actually checking against the erased type Object ---------- 1 problem *** This bug has been marked as a duplicate of 78591 ***