aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
index b292452a4..448c3a011 100644
--- a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
+++ b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
@@ -15,6 +15,8 @@ import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.security.ProtectionDomain;
+import org.aspectj.bridge.context.CompilationAndWeavingContext;
+
/**
* Java 1.5 adapter for class pre processor
*
@@ -29,6 +31,7 @@ public class ClassPreProcessorAgentAdapter implements ClassFileTransformer {
static {
try {
+ CompilationAndWeavingContext.setMultiThreaded(true);
s_preProcessor = new Aj();
s_preProcessor.initialize();
} catch (Exception e) {