diff options
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/Constants.java | 1 | ||||
-rw-r--r-- | lib/bcel/bcel-src.zip | bin | 326880 -> 326882 bytes | |||
-rw-r--r-- | lib/bcel/bcel.jar | bin | 285217 -> 285242 bytes | |||
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java | 2 | ||||
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | 3 |
5 files changed, 3 insertions, 3 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/Constants.java b/bcel-builder/src/org/aspectj/apache/bcel/Constants.java index 4499284c2..0bba78fc4 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/Constants.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/Constants.java @@ -106,6 +106,7 @@ public interface Constants { public final static short ACC_ABSTRACT = 0x0400; public final static short ACC_STRICT = 0x0800; + public final static short ACC_SYNTHETIC = 0x1000; public final static short ACC_ANNOTATION = 0x2000; public final static short ACC_ENUM = 0x4000; public final static short ACC_BRIDGE = 0x0040; diff --git a/lib/bcel/bcel-src.zip b/lib/bcel/bcel-src.zip Binary files differindex 0134491e0..3881b662f 100644 --- a/lib/bcel/bcel-src.zip +++ b/lib/bcel/bcel-src.zip diff --git a/lib/bcel/bcel.jar b/lib/bcel/bcel.jar Binary files differindex 70652a470..0126d477e 100644 --- a/lib/bcel/bcel.jar +++ b/lib/bcel/bcel.jar diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java index 3163e7f37..88b1090c2 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java @@ -360,7 +360,7 @@ class BcelClassWeaver implements IClassWeaver { } // The bridge method in this type will have the same signature as the one in the supertype LazyMethodGen bridgeMethod = makeBridgeMethod(clazz, theBridgeMethod); - int newflags = bridgeMethod.getAccessFlags() | 0x00000040;// BRIDGE = 0x00000040 + int newflags = bridgeMethod.getAccessFlags() | Constants.ACC_BRIDGE | Constants.ACC_SYNTHETIC ;// BRIDGE = 0x00000040 if ((newflags & 0x00000100) != 0) { newflags = newflags - 0x100;// NATIVE = 0x00000100 - need to clear it diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java index ea0248335..a5f042a5e 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java @@ -77,7 +77,6 @@ import org.aspectj.weaver.tools.Traceable; * We stay away from targeters for rangey things like Shadows and Exceptions. */ public final class LazyMethodGen implements Traceable { - private static final int ACC_SYNTHETIC = 0x1000; private int modifiers; private Type returnType; @@ -995,7 +994,7 @@ public final class LazyMethodGen implements Traceable { if (isSynthetic) { if (enclosingClass.getWorld().isInJava5Mode()) { - gen.setModifiers(gen.getModifiers() | ACC_SYNTHETIC); + gen.setModifiers(gen.getModifiers() | Constants.ACC_SYNTHETIC); } if (!hasAttribute("Synthetic")) { // belt and braces, do the attribute even on Java 5 in addition to the modifier flag |