RFR: CODETOOLS-7902805: State cycle validation should be more resilient

Aleksey Shipilev shade at openjdk.java.net
Tue Dec 8 19:20:33 UTC 2020


There is a Windows GH Actions test failure on JDK 7.

compileTest(org.openjdk.jmh.ct.states.dag.cycles.ExplicitCycleBenchmarkTest) Time elapsed: 0.383 sec <<< FAILURE!
junit.framework.AssertionFailedError: Failure message should contain "@State dependency cycle is detected", but was "[ERROR at line -1: Annotation generator had thrown the exception. java.lang.InternalError: java.lang.StackOverflowError
   at java.lang.reflect.Proxy.newInstance(Proxy.java:772)
   at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:755)
   at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:301)
   at com.sun.tools.javac.model.AnnotationProxyMaker.generateAnnotation(AnnotationProxyMaker.java:86)
   at com.sun.tools.javac.model.AnnotationProxyMaker.generateAnnotation(AnnotationProxyMaker.java:78)
   at com.sun.tools.javac.model.JavacElements.getAnnotation(JavacElements.java:108)
   at com.sun.tools.javac.code.Symbol.getAnnotation(Symbol.java:456)
   at org.openjdk.jmh.generators.annotations.APMethodInfo.getAnnotation(APMethodInfo.java:82)
   at org.openjdk.jmh.generators.core.StateObjectHandler.validateNoCyclesStep(StateObjectHandler.java:248)
   at org.openjdk.jmh.generators.core.StateObjectHandler.validateNoCyclesStep(StateObjectHandler.java:249)
   at
...

-------------

Commit messages:
 - 7902805: State cycle validation should be more resilient

Changes: https://git.openjdk.java.net/jmh/pull/15/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jmh&pr=15&range=00
  Issue: https://bugs.openjdk.java.net/browse/CODETOOLS-7902805
  Stats: 174 lines in 3 files changed: 155 ins; 8 del; 11 mod
  Patch: https://git.openjdk.java.net/jmh/pull/15.diff
  Fetch: git fetch https://git.openjdk.java.net/jmh pull/15/head:pull/15

PR: https://git.openjdk.java.net/jmh/pull/15


More information about the jmh-dev mailing list