From: aclement Date: Thu, 10 Nov 2005 15:51:52 +0000 (+0000) Subject: fix getPackageName() to cope with parameterized types. X-Git-Tag: V1_5_0RC1~206 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8965f8074211c53ba39127f22d079da102d2bd5e;p=aspectj.git fix getPackageName() to cope with parameterized types. --- 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;