]> source.dussan.org Git - aspectj.git/commitdiff
Fixes Bug 526594
authorAndy Clement <aclement@pivotal.io>
Mon, 30 Oct 2017 16:39:50 +0000 (09:39 -0700)
committerAndy Clement <aclement@pivotal.io>
Mon, 30 Oct 2017 16:39:50 +0000 (09:39 -0700)
Compile error: ClassCastException thrown: org.aspectj.weaver.MissingResolvedTypeWithKnownSignature cannot be cast to ReferenceType

org.aspectj.matcher/src/org/aspectj/weaver/World.java

index 8af6cc528f79991614ce8ad54f83396fbd06e8eb..6bba2d551b5962bd42c81df818266e7a55e0be62 100644 (file)
@@ -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()) {