diff options
author | aclement <aclement> | 2005-04-19 12:22:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-04-19 12:22:51 +0000 |
commit | 29bcb502601e39a95e1272caee652c8156aef819 (patch) | |
tree | 0e78ee88df8cf493ca2263de39a271ed5b171bea /weaver | |
parent | 32a4dbb9b3d436da05dc1d06aaf203a32208c83e (diff) | |
download | aspectj-29bcb502601e39a95e1272caee652c8156aef819.tar.gz aspectj-29bcb502601e39a95e1272caee652c8156aef819.zip |
from branch: processes @AJ stuff on a field
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelField.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelField.java b/weaver/src/org/aspectj/weaver/bcel/BcelField.java index 0f415ffb2..ee8d51bc5 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelField.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelField.java @@ -27,6 +27,7 @@ import org.aspectj.weaver.ResolvedMember; import org.aspectj.weaver.ResolvedTypeX; import org.aspectj.weaver.TypeX; import org.aspectj.weaver.World; +import org.aspectj.weaver.ataspectj.Aj5Attributes; final class BcelField extends ResolvedMember { @@ -54,7 +55,9 @@ final class BcelField extends ResolvedMember { private void unpackAttributes(World world) { Attribute[] attrs = field.getAttributes(); - List as = BcelAttributes.readAjAttributes(getDeclaringType().getClassName(),attrs, getSourceContext(world),world.getMessageHandler()); + List as = BcelAttributes.readAjAttributes(getDeclaringType().getClassName(),attrs, getSourceContext(world),world.getMessageHandler()); + as.addAll(Aj5Attributes.readAj5FieldAttributes(field, world.resolve(getDeclaringType()), getSourceContext(world), world.getMessageHandler())); + for (Iterator iter = as.iterator(); iter.hasNext();) { AjAttribute a = (AjAttribute) iter.next(); if (a instanceof AjAttribute.AjSynthetic) { |