diff options
author | aclement <aclement> | 2005-01-27 17:27:29 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-01-27 17:27:29 +0000 |
commit | 2aeab8210db82a9610a17fc9aeeb47a3ee70897e (patch) | |
tree | 4fdaf34e44adfeaf1f11078f0cd358606bd65493 | |
parent | 4adf568fdfcc82ea7257cf24f88aefa109deba52 (diff) | |
download | aspectj-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.java | 2 |
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(); |