summaryrefslogtreecommitdiffstats
path: root/weaver/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-09 10:48:58 +0000
committeracolyer <acolyer>2005-09-09 10:48:58 +0000
commita9ca915dc39c87267a7a763d51e87a819e9799c7 (patch)
treea5918da4b73c3079ac5077312db1d3e27e2ca955 /weaver/src
parentd2447a0cc3201a1792ffe19579e92e0e609de7e8 (diff)
downloadaspectj-a9ca915dc39c87267a7a763d51e87a819e9799c7.tar.gz
aspectj-a9ca915dc39c87267a7a763d51e87a819e9799c7.zip
tests and fix for pr109124, not correctly recognizing synthetic fields under 1.5
Diffstat (limited to 'weaver/src')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelField.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelField.java b/weaver/src/org/aspectj/weaver/bcel/BcelField.java
index ad8edab0d..0e6f0f162 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelField.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelField.java
@@ -34,6 +34,8 @@ import org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.GenericSigna
final class BcelField extends ResolvedMemberImpl {
+ private static int AccSynthetic = 0x1000;
+
private Field field;
private boolean isAjSynthetic;
private boolean isSynthetic = false;
@@ -78,6 +80,12 @@ final class BcelField extends ResolvedMemberImpl {
for (int i = attrs.length - 1; i >= 0; i--) {
if (attrs[i] instanceof Synthetic) isSynthetic = true;
}
+
+ // in 1.5, synthetic is a modifier, not an attribute
+ if ((field.getModifiers() & AccSynthetic) != 0) {
+ isSynthetic = true;
+ }
+
}