Community
Participate
Working Groups
Eclipse Indigo AJDT 2.13 When editing a aj-file, i receive the folloing exception java.lang.NullPointerException at org.aspectj.weaver.bcel.BcelClassWeaver.addInitializer(BcelClassWeaver.java:247) at org.aspectj.weaver.bcel.BcelTypeMunger.mungeNewField(BcelTypeMunger.java:1917) at org.aspectj.weaver.bcel.BcelTypeMunger.munge(BcelTypeMunger.java:105) at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:434) at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:100) at org.aspectj.weav ... ing ()Ljava/lang/String; ARETURN end public String toString() end abstract class ... Short time before, two projects have benn added to the inPath of the project and, because it is a maven project, to the pom.xml. in the aj-file a parent is declared implementing a interface. declare parents: INode implements IBlueprintItem Both INode and IBlueprintItem are interfaces. The aj.file is attached to this bug.
Created attachment 200241 [details] the aj file creating the Nullpointerexception
Does this keep happening? Or was it just a one off occurrence? Is INode a generic type?
Created attachment 200433 [details] the corrected version
INode is a generic type (Inode<VC, EC, E extends Enum<E>>): the newly attached file works. The difference is that the declared methods now are bound to INode and not to IBluePrintItem.