]> source.dussan.org Git - aspectj.git/commitdiff
241047: test and fix: when pipelining we have to ask the generic type for its super...
authoraclement <aclement>
Tue, 19 Aug 2008 21:29:20 +0000 (21:29 +0000)
committeraclement <aclement>
Tue, 19 Aug 2008 21:29:20 +0000 (21:29 +0000)
weaver/src/org/aspectj/weaver/patterns/TypePattern.java

index ddd8e598e9ee8b5607d684ebbee246e7fd765518..1336ea863efb66df0db818253831bb4144be0e4e 100644 (file)
@@ -181,7 +181,10 @@ public abstract class TypePattern extends PatternNode {
                        //System.out.println("    true");
                        return true;
                }
-               
+               // If an ITD is applied, it will be put onto the generic type, not the parameterized or raw form
+               if (superType.isParameterizedType() || superType.isRawType()) {
+                       superType = superType.getGenericType();
+               }
                // FuzzyBoolean ret = FuzzyBoolean.NO; // ??? -eh
                for (Iterator i = superType.getDirectSupertypes(); i.hasNext(); ) {
                        ResolvedType superSuperType = (ResolvedType)i.next();