]> source.dussan.org Git - aspectj.git/commitdiff
remove check - is type variable bound is a type variable and that then has an interf...
authoraclement <aclement>
Tue, 6 Apr 2010 00:05:35 +0000 (00:05 +0000)
committeraclement <aclement>
Tue, 6 Apr 2010 00:05:35 +0000 (00:05 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/TypeVariable.java

index 76d954b83d316f9dca8bfe6284fb5a737428d265..98cbedf0a227f2c3b7b501d0e85a092a4b73c44d 100644 (file)
@@ -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);