From: aclement Date: Thu, 27 Jan 2005 17:27:29 +0000 (+0000) Subject: Fix for Bug 83645: pertypewithin({interface}) illegal field modifier X-Git-Tag: Root_AspectJ5_Development~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2aeab8210db82a9610a17fc9aeeb47a3ee70897e;p=aspectj.git Fix for Bug 83645: pertypewithin({interface}) illegal field modifier - Don't try and put a static initializer in an interface. --- 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();