Community
Participate
Working Groups
Created attachment 84657 [details] test case Build ID: M20070212-1330 Steps To Reproduce: Try to compile the attached test program in Eclipse. It complains about: Type mismatch: cannot convert from Annotation to ConstructorProperties With javac this compiles without problems (as it should, because it is semantically correct AFAICS). This might be related to bug #212147, but I am not sure. At least the compiler error is a different one. More information:
Yes, this is a dup of bug 212147. You need to write instead: final Class<ConstructorProperties> propertyNamesClass = ConstructorProperties.class; Constructor<ConstructorProperties> constr = propertyNamesClass.getConstructor(); String[] propertyNames = constr.getAnnotation(propertyNamesClass).value(); since Constructor is a generic type. Closing as duplicate of bug 212147 *** This bug has been marked as a duplicate of bug 212147 ***
Verified for 3.4M4 using I20071211-0010.