From 9b87ea9ff3ea63d6115cf93c2420c200d90566b3 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 19 Aug 2008 21:29:20 +0000 Subject: [PATCH] 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 --- weaver/src/org/aspectj/weaver/patterns/TypePattern.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.39.5