Bug 329510 - UnsupportedOperationException thrown when trying to put into a Map
Summary: UnsupportedOperationException thrown when trying to put into a Map
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.10   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-05 01:12 EDT by Christopher Smith CLA
Modified: 2013-06-24 11:01 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Smith CLA 2010-11-05 01:12:02 EDT
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
Comment 1 Andrew Clement CLA 2010-11-08 13:52:06 EST
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.
Comment 2 buggz CLA 2011-01-21 13:03:49 EST
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.
Comment 3 Andrew Clement CLA 2011-01-21 13:09:05 EST
> 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.
Comment 4 Andrew Clement CLA 2011-02-08 11:48:47 EST
still hitting this with the latest AJDT? Let me know.
Comment 5 buggz CLA 2011-02-08 11:58:44 EST
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!
Comment 6 Andrew Clement CLA 2013-06-24 11:01:43 EDT
unsetting the target field which is currently set for something already released