aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core.test/src/org/jacoco/core/runtime
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2013-12-19 18:36:12 +0100
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2013-12-19 18:36:12 +0100
commit9f4ef8dcffb3acbcd066ec073d87de65eeb06b48 (patch)
treebafe193d49c408a7b101345756d4ef327653d678 /org.jacoco.core.test/src/org/jacoco/core/runtime
parent7bbf8ffd29bb35515b449965271d79ea540d248e (diff)
downloadjacoco-9f4ef8dcffb3acbcd066ec073d87de65eeb06b48.tar.gz
Keep ASM API version at central place to simplify migration to ASM 5.
Diffstat (limited to 'org.jacoco.core.test/src/org/jacoco/core/runtime')
-rw-r--r--org.jacoco.core.test/src/org/jacoco/core/runtime/RuntimeTestBase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/runtime/RuntimeTestBase.java b/org.jacoco.core.test/src/org/jacoco/core/runtime/RuntimeTestBase.java
index 05f80432..ed07fe46 100644
--- a/org.jacoco.core.test/src/org/jacoco/core/runtime/RuntimeTestBase.java
+++ b/org.jacoco.core.test/src/org/jacoco/core/runtime/RuntimeTestBase.java
@@ -16,6 +16,7 @@ import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+import org.jacoco.core.JaCoCo;
import org.jacoco.core.internal.instr.InstrSupport;
import org.jacoco.core.test.TargetLoader;
import org.junit.After;
@@ -66,7 +67,7 @@ public abstract class RuntimeTestBase {
public void testNoLocalVariablesInDataAccessor()
throws InstantiationException, IllegalAccessException {
runtime.generateDataAccessor(1001, "Target", 5, new MethodVisitor(
- Opcodes.ASM4) {
+ JaCoCo.ASM_API_VERSION) {
@Override
public void visitVarInsn(int opcode, int var) {
fail("No usage of local variables allowed.");