changeset 1272:7b3f64d2cd9c

Fix a regression in ParamOverridingTest and asm/reflection modes.
author shade
date Fri, 28 Aug 2015 19:54:16 +0300
parents a427fb8dccc1
children 6caa9e2ae6a3
files jmh-core-ct/src/test/java/org/openjdk/jmh/ct/params/ParamOverridingTest.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core-ct/src/test/java/org/openjdk/jmh/ct/params/ParamOverridingTest.java	Fri Aug 28 19:08:56 2015 +0300
+++ b/jmh-core-ct/src/test/java/org/openjdk/jmh/ct/params/ParamOverridingTest.java	Fri Aug 28 19:54:16 2015 +0300
@@ -25,6 +25,7 @@
 package org.openjdk.jmh.ct.params;
 
 import org.junit.Test;
+import org.openjdk.jmh.annotations.Benchmark;
 import org.openjdk.jmh.annotations.Param;
 import org.openjdk.jmh.annotations.Scope;
 import org.openjdk.jmh.annotations.State;
@@ -36,9 +37,15 @@
     @Param("value")
     private String param;
 
+    @Benchmark
+    public void test() {}
+
     static class OverridingTest extends ParamOverridingTest {
         @Param("newvalue")
         private String param;
+
+        @Benchmark
+        public void test() {}
     }
 
     @Test