diff options
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java index a02b6e19a..6051277d4 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java @@ -436,8 +436,10 @@ public class BcelObjectType extends AbstractReferenceTypeDelegate { AjAttribute a = (AjAttribute) iter.next(); if (a instanceof AjAttribute.DeclareAttribute) { Declare decl = (((AjAttribute.DeclareAttribute) a).getDeclare()); - if (decl instanceof DeclareErrorOrWarning || decl instanceof DeclarePrecedence) { + if (decl instanceof DeclareErrorOrWarning) { decl.resolve(bindingScope); + } else if (decl instanceof DeclarePrecedence) { + ((DeclarePrecedence) decl).setScopeForResolution(bindingScope); } } } @@ -538,7 +540,6 @@ public class BcelObjectType extends AbstractReferenceTypeDelegate { return wvInfo; } - // -- annotation related public ResolvedType[] getAnnotationTypes() { @@ -561,7 +562,6 @@ public class BcelObjectType extends AbstractReferenceTypeDelegate { return false; } - public boolean isAnnotationWithRuntimeRetention() { return (getRetentionPolicy() == null ? false : getRetentionPolicy().equals("RUNTIME")); } |