From: aclement Date: Mon, 11 Jul 2005 10:52:22 +0000 (+0000) Subject: generics: temporarily use the raw type when matching until the type pattern logic... X-Git-Tag: PRE_ANDY~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=37fb91c6f4f214d2078adcbc7a99327bc822b097;p=aspectj.git generics: temporarily use the raw type when matching until the type pattern logic is aware --- diff --git a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java index a99f05ed8..7b3e20f7d 100644 --- a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java @@ -212,6 +212,8 @@ public abstract class TypePattern extends PatternNode { // FuzzyBoolean ret = FuzzyBoolean.NO; // ??? -eh for (Iterator i = type.getDirectSupertypes(); i.hasNext(); ) { ResolvedTypeX superType = (ResolvedTypeX)i.next(); + // TODO asc generics, temporary whilst matching isnt aware.. + if (superType.isParameterized()) superType = superType.getRawType().resolve(superType.getWorld()); if (matchesSubtypes(superType,type)) return true; } return false;