Community
Participate
Working Groups
sample: public class ObjectArrayDataProvider<E> { private Class<? extends E[]> newType; public ObjectArrayDataProvider(Class<? extends E[]> newType) { this.newType = newType; } } error info: java.lang.ClassCastException at org.aspectj.weaver.World.resolveGenericWildcardFor(World.java:461) at org.aspectj.weaver.World.resolveToReferenceType(World.java:372) at org.aspectj.weaver.World.resolve(World.java:271) at org.aspectj.weaver.World.resolve(World.java:191) at org.aspectj.weaver.World.resolve(World.java:223) at org.aspectj.weaver.TypeFactory.createParameterizedType(TypeFactory.java:47) at org.aspectj.weaver.World.resolveTo ... :183) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Compile error: ClassCastException thrown: org.aspectj.weaver.ResolvedType$Array
passing over to compiler
I have the same bug with AspectJ Tools 1.5.3. If you write "passing over to compiler", where can I look for resolution?
It means the bug was reassigned to AspectJ from AJDT - any resolution information will still be in this bug report.
I initially thought this was because of the same reason as bug 167197 (that array is not a referencetype) but on attempting to compile the code supplied in the first comment here with AspectJ6 - it just works.
playing around with this, I managed to get it to fail with a little aspect attached: aspect X { before(): execution(new(Class<*>)) {}} with the changes I have just put in under 167197 - this is fixed. fixes should be available shortly.