From d490604ec4490e0335722373319f31fdbe6662d5 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 6 Apr 2010 00:05:35 +0000 Subject: remove check - is type variable bound is a type variable and that then has an interface bound, that can trigger this check to fail --- org.aspectj.matcher/src/org/aspectj/weaver/TypeVariable.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org.aspectj.matcher') diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/TypeVariable.java b/org.aspectj.matcher/src/org/aspectj/weaver/TypeVariable.java index 76d954b83..98cbedf0a 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/TypeVariable.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/TypeVariable.java @@ -152,9 +152,9 @@ public class TypeVariable { if (superclass != null) { ResolvedType rt = superclass.resolve(world); - if (!superclass.isTypeVariableReference() && rt.isInterface()) { - throw new IllegalStateException("Why is the type an interface? " + rt); - } + // if (!superclass.isTypeVariableReference() && rt.isInterface()) { + // throw new IllegalStateException("Why is the type an interface? " + rt); + // } superclass = rt; } firstbound = getFirstBound().resolve(world); -- cgit v1.2.3