Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Strange Pointcut Method Conflict Errors

>From your description, I knocked up this program:

=========8<==============
import java.util.*;

interface MyConcern {}

abstract aspect MyConcernImpl implements MyConcern {}

aspect MyConcernIntertype extends MyConcernImpl {
  declare parents: Foo implements MyConcern;
}

class Foo<T> extends ArrayList<T> {}
=========8<==============

Compiling it fails with :

java.lang.NullPointerException
        at org.aspectj.weaver.ReferenceType.makeDeclaredSignature(ReferenceType.java:553)
        at org.aspectj.weaver.ReferenceType.getSignatureForAttribute(ReferenceType.java:99)
        at org.aspectj.weaver.bcel.LazyClassGen.fixupGenericSignatureAttribute(LazyClassGen.java:547)

but with the latest from CVS head (not quite in a dev build yet), it
is all fixed under the bug you referenced and the signature for Foo is
then:

<T:Ljava/lang/Object;>Pjava/util/ArrayList<TT;>;LMyConcern;

Andy.


Back to the top