summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-27 17:27:29 +0000
committeraclement <aclement>2005-01-27 17:27:29 +0000
commit2aeab8210db82a9610a17fc9aeeb47a3ee70897e (patch)
tree4fdaf34e44adfeaf1f11078f0cd358606bd65493
parent4adf568fdfcc82ea7257cf24f88aefa109deba52 (diff)
downloadaspectj-2aeab8210db82a9610a17fc9aeeb47a3ee70897e.tar.gz
aspectj-2aeab8210db82a9610a17fc9aeeb47a3ee70897e.zip
Fix for Bug 83645: pertypewithin({interface}) illegal field modifier
- Don't try and put a static initializer in an interface.
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelShadow.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
index aa03a51ab..3a738cd26 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
@@ -1517,6 +1517,8 @@ public class BcelShadow extends Shadow {
* Causes the aspect instance to be *set* for later retrievable through localAspectof()/aspectOf()
*/
public void weavePerTypeWithinAspectInitialization(final BcelAdvice munger,TypeX t) {
+
+ if (t.isInterface(world)) return; // Don't initialize statics in
final InstructionFactory fact = getFactory();
InstructionList entryInstructions = new InstructionList();