Community
Participate
Working Groups
Cheetah from cvs as of few minutes ago. Sun JDK 1.5.0 beta3 b57. Running the code below results in java.lang.VerifyError: (class: test/cheetah/T, method: main signature: ([Ljava/lang/String;)V) Incompatible object argument for function call Exception in thread "main" ============================================ package test.cheetah; import java.util.HashMap; import java.util.Map; public class T { private static final Map<String, Class> classes = new HashMap<String, Class>(); public static void main(String[] args) throws Exception { final Class<? extends Object> clazz = (Class<? extends Object>) classes.get("test"); Object o = clazz.newInstance(); } } ============================================
Created attachment 13126 [details] T.class
Igor - given the amount of bugs in this area you find, would you consider writing a test suite for generics ?
Due to recent evolution in generic cast support which requires all generic expression container to perform suitable #computeConversion call (to address bug 69542). We are finding the missing places (which did not require this in the past). Added regression test: GenericTypeTest#test241-242.