aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-10 15:51:52 +0000
committeraclement <aclement>2005-11-10 15:51:52 +0000
commit8965f8074211c53ba39127f22d079da102d2bd5e (patch)
tree1b82352d7c186ee4715bbef4e5154c7f4eb4b54b
parent4c6d0ecb0511f04b906a66e378ce5c76d403dcf6 (diff)
downloadaspectj-8965f8074211c53ba39127f22d079da102d2bd5e.tar.gz
aspectj-8965f8074211c53ba39127f22d079da102d2bd5e.zip
fix getPackageName() to cope with parameterized types.
-rw-r--r--weaver/src/org/aspectj/weaver/UnresolvedType.java3
1 files changed, 3 insertions, 0 deletions
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;