Bug 404600 - Unhandled RuntimeException
Summary: Unhandled RuntimeException
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 1.7.3   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-29 00:48 EDT by Matthew Adams CLA
Modified: 2013-04-02 15:30 EDT (History)
1 user (show)

See Also:


Attachments
screen cap of unhandled exception (287.65 KB, image/png)
2013-03-29 00:50 EDT, Matthew Adams CLA
no flags Details
screen cap of package error marker (125.27 KB, image/png)
2013-03-29 00:51 EDT, Matthew Adams CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.