summaryrefslogtreecommitdiffstats
path: root/weaver5
diff options
context:
space:
mode:
authoracolyer <acolyer>2006-04-14 16:41:36 +0000
committeracolyer <acolyer>2006-04-14 16:41:36 +0000
commit3e0fc355acc7c525ca290d4740ff7ca70edf408c (patch)
treedd32a5dd67ded8da4042b82505ad4df70043fe21 /weaver5
parent965ac05c7a891086c726baafdc4b49b07cbbd86e (diff)
downloadaspectj-3e0fc355acc7c525ca290d4740ff7ca70edf408c.tar.gz
aspectj-3e0fc355acc7c525ca290d4740ff7ca70edf408c.zip
use signature rather than name when annotation matching as Bcel chops name in the java.lang package !!
Diffstat (limited to 'weaver5')
-rw-r--r--weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java
index 6202e9c94..be8d9fd62 100644
--- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java
+++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java
@@ -118,7 +118,7 @@ public class Java15AnnotationFinder implements AnnotationFinder, ArgNameFinder {
// convert to our Annotation type
Set<ResolvedType> annSet = new HashSet<ResolvedType>();
for (int i = 0; i < anns.length; i++) {
- annSet.add(UnresolvedType.forName(anns[i].getTypeName()).resolve(world));
+ annSet.add(world.resolve(UnresolvedType.forSignature(anns[i].getTypeSignature())));
}
return annSet;
} catch (ClassNotFoundException cnfEx) {
@@ -146,7 +146,7 @@ public class Java15AnnotationFinder implements AnnotationFinder, ArgNameFinder {
if (anns == null) return new ResolvedType[0];
ResolvedType[] ret = new ResolvedType[anns.length];
for (int i = 0; i < ret.length; i++) {
- ret[i] = inWorld.resolve(anns[i].getTypeName());
+ ret[i] = inWorld.resolve(UnresolvedType.forSignature(anns[i].getTypeSignature()));
}
return ret;
} catch (ClassNotFoundException cnfEx) {