]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bug 83645: pertypewithin({interface}) illegal field modifier
authoraclement <aclement>
Thu, 27 Jan 2005 17:27:29 +0000 (17:27 +0000)
committeraclement <aclement>
Thu, 27 Jan 2005 17:27:29 +0000 (17:27 +0000)
- Don't try and put a static initializer in an interface.

weaver/src/org/aspectj/weaver/bcel/BcelShadow.java

index aa03a51ab38c4ee50740ef086fa8ffc6adce6162..3a738cd266b9e7825b6572b443d8ec2e50c95d25 100644 (file)
@@ -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();