From: acolyer Date: Wed, 13 Jul 2005 10:13:38 +0000 (+0000) Subject: don't re-resolve already resolved types X-Git-Tag: PRE_ANDY~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2606446912aae244297a74c6f68c11ed3832d30;p=aspectj.git don't re-resolve already resolved types --- diff --git a/weaver/src/org/aspectj/weaver/World.java b/weaver/src/org/aspectj/weaver/World.java index 4efa5fe65..c32066db0 100644 --- a/weaver/src/org/aspectj/weaver/World.java +++ b/weaver/src/org/aspectj/weaver/World.java @@ -156,6 +156,11 @@ public abstract class World implements Dump.INode { } public ResolvedTypeX resolve(TypeX ty, boolean allowMissing) { + if (ty instanceof ResolvedTypeX) { + ResolvedTypeX rty = (ResolvedTypeX) ty; + rty.world = this; + return rty; + } //System.out.println("resolve: " + ty + " world " + typeMap.keySet()); if (ty instanceof UnresolvedTypeVariableReferenceType) { // AMC - don't like this instanceof test, suggests some refactoring needed...