]> source.dussan.org Git - aspectj.git/commitdiff
ability to replace upper bound (used when fixing up circular dependencies)
authoracolyer <acolyer>
Mon, 11 Jul 2005 09:38:13 +0000 (09:38 +0000)
committeracolyer <acolyer>
Mon, 11 Jul 2005 09:38:13 +0000 (09:38 +0000)
weaver/src/org/aspectj/weaver/TypeVariable.java

index 73c92ac52497b36eb8aacb806446c4b25b97211d..f33bf8f3fc6e2b0f541e1d94bef437b7cb65d908 100644 (file)
@@ -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();
+       }
 }