Community
Participate
Working Groups
The following exception is thrown when trying to build our project. The exception prevents the build from succeeding, and the Maven AspectJ mojo can successfully build the project. java.lang.UnsupportedOperationException at java.util.AbstractMap.put(AbstractMap.java:186) at org.aspectj.asm.internal.ProgramElement.setDeclareParentsMap(ProgramElement.java:678) at org.aspectj.weaver.bcel.BcelTypeMunger.munge(BcelTypeMunger.java:165) at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:433) at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:99) at org.aspectj.weaver.bcel.BcelWeaver.weave ... uilder.toString ()Ljava/lang/String; ARETURN end public String toString() end public class com.example.domain.Item
Hi - are you sure that is on 1.6.10? I put the fix in for this on 1.6.10, it was the very last thing to go in. If you are on an up to date AJDT you should be running with the fix in place.
Hi Andy, I am running 1.6.10 and this error crashes my builds constantly. :( (In reply to comment #1) > Hi - are you sure that is on 1.6.10? I put the fix in for this on 1.6.10, it > was the very last thing to go in. If you are on an up to date AJDT you should > be running with the fix in place.
> Hi Andy, I am running 1.6.10 and this error crashes my builds constantly. :( Ok, please can you give me an up to date stack trace, because in 1.6.10 line 678 is call to a method and not a map put - so you must be getting a different stack trace (line numbers) if running 1.6.10. Also, if you can confirm what level of AJDT you are running, exact build date, that will help me work out what you are running.
still hitting this with the latest AJDT? Let me know.
I know this might sound crazy, but I think I might have more than one version of the compiler installed. I'm not sure this is the case, but I have evidence that suggests this. The truth is, I haven't had the time to investigate. The next time this blows up, I'll try to dig in a little deeper. Thanks so much for your work!
unsetting the target field which is currently set for something already released