Community
Participate
Working Groups
For the given program the internal compiler reports a bound mismatch error. Sun's javac has no problems with this program. import java.util.*; public class A { public <E extends Object, S extends Collection<E>> S test1(S param){ return null; } public void test2() { test1(new Vector<String>()); } }
Added regression test: GenericTypeTest#test452. Type inference wasn't collecting through type variable bounds recursively.
Fixed
Verified in I20050214