From 85eed1b16732e2448a4d5089ce46e8fe0530e4b0 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 29 Jan 2009 23:56:34 +0000 Subject: [PATCH] 256779: test and fix: decp lazy resolution in anno style --- weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java | 6 +++--- 1 file 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")); } -- 2.39.5