From 2aeab8210db82a9610a17fc9aeeb47a3ee70897e Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 27 Jan 2005 17:27:29 +0000 Subject: [PATCH] Fix for Bug 83645: pertypewithin({interface}) illegal field modifier - Don't try and put a static initializer in an interface. --- weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5