From: aclement Date: Tue, 19 Aug 2008 21:29:20 +0000 (+0000) Subject: 241047: test and fix: when pipelining we have to ask the generic type for its super... X-Git-Tag: V162DEV_M1~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9b87ea9ff3ea63d6115cf93c2420c200d90566b3;p=aspectj.git 241047: test and fix: when pipelining we have to ask the generic type for its super interfaces as thats where they will be until it has gone through the pipeline --- diff --git a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java index ddd8e598e..1336ea863 100644 --- a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java @@ -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();