Bug 404600

Summary: Unhandled RuntimeException
Product: [Tools] AspectJ Reporter: Matthew Adams <matthew>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aclement
Version: DEVELOPMENT   
Target Milestone: 1.7.3   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
screen cap of unhandled exception
none
screen cap of package error marker none

Description Matthew Adams CLA 2013-03-29 00:48:42 EDT
I'm getting an unhandled RuntimeException from STS 3.2.0.RELEASE:

java.lang.RuntimeException
at org.aspectj.asm.AsmManager.sameType(AsmManager.java:897)
at org.aspectj.asm.AsmManager.removeRelationshipsTargettingThisType(AsmManager.java:711)
at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1033)
at org.aspectj.ajdt.internal.compiler.AjPipeliningCompilerAdapter.weaveQueuedEntries(AjPipeliningCompilerAdapter.java:514)
at org.aspectj.ajdt.internal.compiler.AjPipeliningCompilerAdapter.queueForWeavin ... ndation-domain/src\/main\/java<com.scispike.foundation.domain.trait.persistence*PersistableAspect.aj%com.scispike.foundation.domain.trait.persistence)

Andy Clement, this can be reproduced in our private foundation repo's dev branch at commit d879446f2bfd83b51bf711d2931f4b28ce8c1901.

After clicking ok on the exception dialog, there is an error marker on the package statement with text:

Internal compiler error: java.lang.RuntimeException: Exception whilst walking up from target com.scispike.foundation.domain.trait.persistence kind=(package declaration) 
 hid=(=foundation-domain/src\/main\/java<com.scispike.foundation.domain.trait.persistence*PersistableAspect.aj%com.scispike.foundation.domain.trait.persistence) at 
 org.aspectj.asm.AsmManager.sameType(AsmManager.java:897)

If I do a Project\Clean..., the exception is not reproduced and everything compiles ok.  Next edit repros the exception.
Comment 1 Matthew Adams CLA 2013-03-29 00:50:08 EDT
Created attachment 229175 [details]
screen cap of unhandled exception
Comment 2 Matthew Adams CLA 2013-03-29 00:51:04 EDT
Created attachment 229176 [details]
screen cap of package error marker
Comment 3 Andrew Clement CLA 2013-04-01 19:07:06 EDT
Matthew, I think you need to give me some fresh access to the project? (Based on our discussion earlier).
Comment 4 Matthew Adams CLA 2013-04-01 21:07:31 EDT
Efforting that now...

(In reply to comment #3)
> Matthew, I think you need to give me some fresh access to the project?
> (Based on our discussion earlier).
Comment 5 Andrew Clement CLA 2013-04-02 15:30:30 EDT
Fixed. Thanks for the project. An declare @type was targeting a parameterized type and those don't have a proper representation in the model, only the generic type is stored. The fix was to work with the generic type instead. All committed, should be in the next e42 AJDT build.