Does JMH support jdk9 or higher?

Aleksey Shipilev shade at redhat.com
Wed Sep 6 10:53:06 UTC 2017


On 09/06/2017 12:40 PM, huaming.li at oracle.com wrote:
> Hi,
> Does JMH support jdk9 or higher?

JMH supports running on JDK 9. JMH workspace may have troubles building with JDK 9.

> I follow steps in “Preferred Usage: Command Line” section at
> http://openjdk.java.net/projects/code-tools/jmh/, but face following error when “mvn clean install”.
> Am I misusing jmh or missing something?

Hm. This thing about @Generated was fixed long time ago:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901643

Are you sure you are running with latest JMH? What does the JMH <version> says in your project pom.xml?

-Aleksey



More information about the jmh-dev mailing list