From: acolyer Date: Mon, 11 Jul 2005 09:38:13 +0000 (+0000) Subject: ability to replace upper bound (used when fixing up circular dependencies) X-Git-Tag: PRE_ANDY~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40a4a1570c558b65410089b1620963ed603bd2b5;p=aspectj.git ability to replace upper bound (used when fixing up circular dependencies) --- diff --git a/weaver/src/org/aspectj/weaver/TypeVariable.java b/weaver/src/org/aspectj/weaver/TypeVariable.java index 73c92ac52..f33bf8f3f 100644 --- a/weaver/src/org/aspectj/weaver/TypeVariable.java +++ b/weaver/src/org/aspectj/weaver/TypeVariable.java @@ -128,4 +128,14 @@ public class TypeVariable { ResolvedTypeX subType = (ResolvedTypeX) candidateSubType; return superType.isAssignableFrom(subType); } + + // only used when resolving circular dependencies + public void setUpperBound(TypeX aTypeX) { + this.upperBound = aTypeX; + } + + // good enough approximation + public String toString() { + return "T" + upperBound.getSignature(); + } }