JMH does not recognise @State annotation on Groovy classes
Gabor Nagy
nagyga1 at gmail.com
Mon Oct 19 14:24:06 UTC 2015
Hope the attachment goes through.
Don't scold me if it is something moronic...
groovy-all 2.4.3
maven-compiler-plugin 3.1
groovy-eclipse-compiler 2.9.2-01
groovy-eclipse-batch
mvn clean compile
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building JMH benchmark sample: Groovy 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ my-app ---
[INFO] Deleting /tmp/my-app/my-app/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
my-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/tmp/my-app/my-app/src/main/resources
[INFO] skip non existing resourceDirectory
/tmp/my-app/my-app/src/main/resources.filtered
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ my-app ---
[INFO] Changes detected - recompiling the module!
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/tmp/my-app/my-app/src/main/java/com/test/app/MyBenchmark.groovy:[41,8] 1.
ERROR in /tmp/my-app/my-app/src/main/java/com/test/app/MyBenchmark.groovy
(at line 41)
double something;
^^^^^^^^^
Field "something" is declared within the class not having @State
annotation. This can result in unspecified behavior, and prohibited.
[ERROR] Found 1 error and 0 warnings.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.071 s
[INFO] Finished at: 2015-10-19T22:19:59+08:00
[INFO] Final Memory: 13M/163M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project my-app: Compilation failure: Compilation
failure:
[ERROR]
/tmp/my-app/my-app/src/main/java/com/test/app/MyBenchmark.groovy:[41,8] 1.
ERROR in /tmp/my-app/my-app/src/main/java/com/test/app/MyBenchmark.groovy
(at line 41)
[ERROR] double something;
[ERROR] ^^^^^^^^^
[ERROR] Field "something" is declared within the class not having @State
annotation. This can result in unspecified behavior, and prohibited.
[ERROR]
[ERROR] Found 1 error and 0 warnings.
More information about the jmh-dev
mailing list