Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325731 - ReferenceType.makeDeclaredSignature ClassCastException
Summary: ReferenceType.makeDeclaredSignature ClassCastException
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 1.7.2   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 06:41 EDT by Gary Feltham CLA
Modified: 2012-11-27 20:35 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Feltham CLA 2010-09-20 06:41:09 EDT
On refactoring code, a dialog showing AspectJ Ineternal Compiler error. Stack trace followed

java.lang.ClassCastException
at org.aspectj.weaver.ReferenceType.makeDeclaredSignature(ReferenceType.java:1033)
at org.aspectj.weaver.ReferenceType.getSignatureForAttribute(ReferenceType.java:124)
at org.aspectj.weaver.bcel.LazyClassGen.fixupGenericSignatureAttribute(LazyClassGen.java:616)
at org.aspectj.weaver.bcel.LazyClassGen.writeBack(LazyClassGen.java:509)
at org.aspectj.weaver.bcel.LazyClassGen.getJavaClassBytesIncludingReweavable ... 
Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedTypeWithKnownSignature cannot be cast to org.aspectj.weaver.ReferenceType
Comment 1 Gary Feltham CLA 2010-09-20 06:53:36 EDT
This cleared after a complete rebuild of the project
Comment 2 Andrew Clement CLA 2011-04-28 12:38:14 EDT
added some debug to trigger if this happens again, it will include a bit more diagnostic info.
Comment 3 Andrew Clement CLA 2012-11-27 20:35:14 EST
fixed under bug 394562 - where the diagnostics I added were triggered.