From 37fb91c6f4f214d2078adcbc7a99327bc822b097 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 11 Jul 2005 10:52:22 +0000 Subject: [PATCH] generics: temporarily use the raw type when matching until the type pattern logic is aware --- weaver/src/org/aspectj/weaver/patterns/TypePattern.java | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5