Bug 526594 - Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedTypeWithKnownSignature cannot be cast to org.aspectj.weaver.ReferenceType
Summary: Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedT...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: IDE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-28 06:14 EDT by Maunika Tamire CLA
Modified: 2018-02-16 03:26 EST (History)
3 users (show)

See Also:


Attachments

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