diff options
author | aclement <aclement> | 2008-02-26 01:01:16 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-02-26 01:01:16 +0000 |
commit | fb9b888d7d1f1a0948acca7ba50da193d6195ab2 (patch) | |
tree | 3e0becb32619e98a737527fc93a54d7692c026b3 | |
parent | 7d05ceb7497c81bf5a4a846c1bd796005c0d8075 (diff) | |
download | aspectj-fb9b888d7d1f1a0948acca7ba50da193d6195ab2.tar.gz aspectj-fb9b888d7d1f1a0948acca7ba50da193d6195ab2.zip |
220255: use the right signature for the annotation added
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java index f1ab14b94..f0bfa557e 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java @@ -819,9 +819,10 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC // on the weaver type temporarily ResolvedType theTargetType = factory.fromEclipse(sourceType); TypeBinding theAnnotationType = toAdd[0].resolvedType; - String name = new String(theAnnotationType.qualifiedPackageName())+"."+new String(theAnnotationType.sourceName()); String sig = new String(theAnnotationType.signature()); - if (theTargetType.hasAnnotation(UnresolvedType.forSignature(sig))) { + UnresolvedType bcelAnnotationType = UnresolvedType.forSignature(sig); + String name = bcelAnnotationType.getName(); + if (theTargetType.hasAnnotation(bcelAnnotationType)) { CompilationAndWeavingContext.leavingPhase(tok); return false; } |