Bug 526594

Summary: Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedTypeWithKnownSignature cannot be cast to org.aspectj.weaver.ReferenceType
Product: [Tools] AspectJ Reporter: Maunika Tamire <tamire.maunika>
Component: IDEAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: aclement, g.rohit7, loskutov
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 8   
Whiteboard:

Description Maunika Tamire CLA 2017-10-28 06:14:24 EDT
I got this compilation issue in STS 3.9.0 version IDE

java.lang.ClassCastException
at org.aspectj.weaver.World.resolveToReferenceType(World.java:465)
at org.aspectj.weaver.World.resolve(World.java:319)
at org.aspectj.weaver.World.resolve(World.java:229)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.makeResolvedMember(EclipseFactory.java:589)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.makeResolvedMember(EclipseFactory.java:566)
at org.aspectj.ajdt.internal.co ... 
Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedTypeWithKnownSignature cannot be cast to org.aspectj.weaver.ReferenceType
Comment 1 Andrew Clement CLA 2017-10-30 14:37:55 EDT
I put in a guard for MissingResolvedType in that block (similar to other guards in other cases in that method). You may still have an issue - the fact that we created a MissingResolvedType suggests that. Now at least with the guard in place it will get past this error - perhaps offering better diagnostics with whatever it hits next.

Dev build is up at: 	http://download.eclipse.org/tools/ajdt/47/dev/update
Comment 2 Rohit Gupta CLA 2018-02-16 03:26:09 EST
I am facing the same issue. I tried the 47 ajdt update, but still facing the same issue.