public void setIncrementalCompileCouldFollow(boolean b) {incrementalCompileCouldFollow = b;}
public boolean couldIncrementalCompileFollow() {return incrementalCompileCouldFollow;}
- public void setSynchronizationPointcutsInUse() {synchronizationPointcutsInUse =true;}
+ public void setSynchronizationPointcutsInUse() {
+ if (trace.isTraceEnabled()) trace.enter("setSynchronizationPointcutsInUse", this);
+ synchronizationPointcutsInUse =true;
+ if (trace.isTraceEnabled()) trace.exit("setSynchronizationPointcutsInUse");
+ }
public boolean areSynchronizationPointcutsInUse() {return synchronizationPointcutsInUse;}
}
import org.aspectj.weaver.World;
import org.aspectj.weaver.patterns.DeclareAnnotation;
import org.aspectj.weaver.patterns.ExactTypePattern;
+import org.aspectj.weaver.tools.Trace;
+import org.aspectj.weaver.tools.TraceFactory;
class BcelClassWeaver implements IClassWeaver {
+
+ private static Trace trace = TraceFactory.getTraceFactory().getTrace(BcelClassWeaver.class);
/**
* This is called from {@link BcelWeaver} to perform the per-class weaving process.
* tidying up - there is some duplication that can be removed.
*/
public static void transformSynchronizedMethod(LazyMethodGen synchronizedMethod) {
+ if (trace.isTraceEnabled()) trace.enter("transformSynchronizedMethod",synchronizedMethod);
// System.err.println("DEBUG: Transforming synchronized method: "+synchronizedMethod.getName());
final InstructionFactory fact = synchronizedMethod.getEnclosingClass().getFactory();
InstructionList body = synchronizedMethod.getBody();
// gonna have to go through and change all aload_0s to load the var from a variable,
// going to add a new variable for the this var
+ if (trace.isTraceEnabled()) trace.exit("transformSynchronizedMethod");
}
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.WeaverMessages;
import org.aspectj.weaver.AjAttribute.WeaverVersionInfo;
+import org.aspectj.weaver.tools.Traceable;
/**
* <p> We stay away from targeters for rangey things like Shadows and Exceptions.
*/
-public final class LazyMethodGen {
+public final class LazyMethodGen implements Traceable {
private static final int ACC_SYNTHETIC = 0x1000;
private int accessFlags;
attributes = newAttributes;
}
+ public String toTraceString() {
+ return toShortString();
+ }
+
}