From 40a4a1570c558b65410089b1620963ed603bd2b5 Mon Sep 17 00:00:00 2001 From: acolyer Date: Mon, 11 Jul 2005 09:38:13 +0000 Subject: [PATCH] ability to replace upper bound (used when fixing up circular dependencies) --- weaver/src/org/aspectj/weaver/TypeVariable.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(); + } } -- 2.39.5