Browse Source

fix for Bug 29693

   Use of within with declare soft yeilds VerifyError 1.1b4
tags/V_1_1_b5
jhugunin 21 years ago
parent
commit
b5bb16f1f0
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      weaver/src/org/aspectj/weaver/bcel/BcelShadow.java

+ 6
- 0
weaver/src/org/aspectj/weaver/bcel/BcelShadow.java View File

@@ -972,7 +972,13 @@ public class BcelShadow extends Shadow {
}


//??? this shares a lot of code with the above weaveAfterThrowing
//??? would be nice to abstract that to say things only once
public void weaveSoftener(BcelAdvice munger, TypeX catchType) {
// a good optimization would be not to generate anything here
// if the shadow is GUARANTEED empty (i.e., there's NOTHING, not even
// a shadow, inside me).
if (getRange().getStart().getNext() == getRange().getEnd()) return;
InstructionFactory fact = getFactory();
InstructionList handler = new InstructionList();
BcelVar exceptionVar = genTempVar(catchType);

Loading…
Cancel
Save