]> source.dussan.org Git - aspectj.git/commitdiff
fix getPackageName() to cope with parameterized types.
authoraclement <aclement>
Thu, 10 Nov 2005 15:51:52 +0000 (15:51 +0000)
committeraclement <aclement>
Thu, 10 Nov 2005 15:51:52 +0000 (15:51 +0000)
weaver/src/org/aspectj/weaver/UnresolvedType.java

index 794eba985717177e30dfd0e794e3a7201e38f86d..1b8b62a934d4599cc09c188535f383eb5800d706 100644 (file)
@@ -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;