From a3b88dafe8c8e36c9692033f1e40ccca80292160 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Mon, 30 Oct 2017 09:39:50 -0700 Subject: [PATCH] Fixes Bug 526594 Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedTypeWithKnownSignature cannot be cast to ReferenceType --- org.aspectj.matcher/src/org/aspectj/weaver/World.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/World.java b/org.aspectj.matcher/src/org/aspectj/weaver/World.java index 8af6cc528..6bba2d551 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/World.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/World.java @@ -463,6 +463,9 @@ public abstract class World implements Dump.INode { // ======= generic types ====================== ResolvedType rt = resolveGenericTypeFor(ty, false); ReferenceType genericType = (ReferenceType) rt; + if (rt.isMissing()) { + return rt; + } return genericType; } else if (ty.isGenericWildcard()) { -- 2.39.5