Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325731

Summary: ReferenceType.makeDeclaredSignature ClassCastException
Product: [Tools] AspectJ Reporter: Gary Feltham <garyfeltham>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aclement
Version: unspecified   
Target Milestone: 1.7.2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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.