From 8965f8074211c53ba39127f22d079da102d2bd5e Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 10 Nov 2005 15:51:52 +0000 Subject: [PATCH] fix getPackageName() to cope with parameterized types. --- weaver/src/org/aspectj/weaver/UnresolvedType.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weaver/src/org/aspectj/weaver/UnresolvedType.java b/weaver/src/org/aspectj/weaver/UnresolvedType.java index 794eba985..1b8b62a93 100644 --- a/weaver/src/org/aspectj/weaver/UnresolvedType.java +++ b/weaver/src/org/aspectj/weaver/UnresolvedType.java @@ -821,6 +821,9 @@ public class UnresolvedType implements TypeVariableDeclaringElement { public String getPackageName() { String name = getName(); + if (name.indexOf("<")!=-1) { + name = name.substring(0,name.indexOf("<")); + } int index = name.lastIndexOf('.'); if (index == -1) { return null; -- 2.39.5