ClassCastException during compilation

Henri Tremblay henri.tremblay at gmail.com
Sat Feb 21 02:51:08 UTC 2026


Hi,

In Java 25, if the annotation processor is passed to the compiler

<plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
    <annotationProcessorPaths>
      <path>
        <groupId>org.openjdk.jmh</groupId>
        <artifactId>jmh-generator-annprocess</artifactId>
        <version>${jmh.version}</version>
      </path>
    </annotationProcessorPaths>
  </configuration>
</plugin>

and you are using module imports

import module jmh.core;

you get

public static class JCIdent extends JCExpression implements IdentifierTree {

I think it's the same issue lombok had.

https://github.com/projectlombok/lombok/issues/3969

How can I report the issue formally?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jmh-dev/attachments/20260220/bba593a5/attachment-0001.htm>


More information about the jmh-dev mailing list