From: Andy Clement Date: Mon, 30 Oct 2017 16:39:50 +0000 (-0700) Subject: Fixes Bug 526594 X-Git-Tag: V1_9_0_RC3~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f0dc0dd21115bfcc9d0ba830e57cc369054d3d5;p=aspectj.git Fixes Bug 526594 Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedTypeWithKnownSignature cannot be cast to ReferenceType --- 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()) {