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>2012-12-19 23:18:26 -0800
commitba6a3d6f87c0007196a4a82aaef58a290f87b864 (patch)
treec852ddbf04a3dc5d9c4e788c9e5339ebdb400891 /src/partest
parent3781cbee8165ff72b5f597e266e8b2f8c95f6cb4 (diff)
downloadscala-ba6a3d6f87c0007196a4a82aaef58a290f87b864.tar.gz
scala-ba6a3d6f87c0007196a4a82aaef58a290f87b864.tar.bz2
scala-ba6a3d6f87c0007196a4a82aaef58a290f87b864.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);
}
}