summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2012-11-09 22:29:09 -0800
committerPaul Phillips <paulp@improving.org>2013-01-24 10:50:53 -0800
commitb2776b40b28d312a8cc0cad0f35b2c3cb81abefb (patch)
treef5bd5d409230081787f93af48b3977aeb106e040 /src/partest
parent0a967e1cc18d631a58d467d9bec0e67860ca3520 (diff)
downloadscala-b2776b40b28d312a8cc0cad0f35b2c3cb81abefb.tar.gz
scala-b2776b40b28d312a8cc0cad0f35b2c3cb81abefb.tar.bz2
scala-b2776b40b28d312a8cc0cad0f35b2c3cb81abefb.zip
Set `canRetransform` flag to `false` in instrumentation.
We do not need to retransform classes once they are loaded. All instrumentation byte-code is pushed at loading time. This fixes a problem with Java 7 that was failing to add a transformer because we did not declare retransformation capability in `MANIFEST.MF` file in Java agent jar. Java 6 allowed to add transformer due to a bug.
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/javaagent/ProfilingAgent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partest/scala/tools/partest/javaagent/ProfilingAgent.java b/src/partest/scala/tools/partest/javaagent/ProfilingAgent.java
index c2e4dc69f4..3b18987040 100644
--- a/src/partest/scala/tools/partest/javaagent/ProfilingAgent.java
+++ b/src/partest/scala/tools/partest/javaagent/ProfilingAgent.java
@@ -20,6 +20,6 @@ public class ProfilingAgent {
// and the test-case itself won't be loaded yet. We rely here on the fact that ASMTransformer does
// not depend on Scala library. In case our assumptions are wrong we can always insert call to
// inst.retransformClasses.
- inst.addTransformer(new ASMTransformer(), true);
+ inst.addTransformer(new ASMTransformer(), false);
}
}