Selaa lähdekoodia

refactoring to make around advice lvt fixes easier to apply - and make the code a bit clearer

tags/pre268419
aclement 15 vuotta sitten
vanhempi
commit
d1ca41db5d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      weaver/src/org/aspectj/weaver/bcel/BcelShadow.java

+ 2
- 2
weaver/src/org/aspectj/weaver/bcel/BcelShadow.java Näytä tiedosto

@@ -2142,7 +2142,7 @@ public class BcelShadow extends Shadow {

// now generate the aroundBody method
// eg. "private static final void method_aroundBody0(M, M, String, org.aspectj.lang.JoinPoint)"
LazyMethodGen extractedShadowMethod = extractShadowInstructionsIntoNewMethod(NameMangler.aroundCallbackMethodName(
LazyMethodGen extractedShadowMethod = extractShadowInstructionsIntoNewMethod(NameMangler.aroundShadowMethodName(
getSignature(), new Integer(getEnclosingClass().getNewGeneratedNameTag()).toString()), Modifier.PRIVATE, munger);

List argsToCallLocalAdviceMethodWith = new ArrayList();
@@ -2692,7 +2692,7 @@ public class BcelShadow extends Shadow {

int linenumber = getSourceLine();
// MOVE OUT ALL THE INSTRUCTIONS IN MY SHADOW INTO ANOTHER METHOD!
LazyMethodGen callbackMethod = extractShadowInstructionsIntoNewMethod(NameMangler.aroundCallbackMethodName(getSignature(),
LazyMethodGen callbackMethod = extractShadowInstructionsIntoNewMethod(NameMangler.aroundShadowMethodName(getSignature(),
new Integer(getEnclosingClass().getNewGeneratedNameTag()).toString()), 0, munger);

BcelVar[] adviceVars = munger.getExposedStateAsBcelVars(true);

Loading…
Peruuta
Tallenna