<div dir="ltr">Hello everyone,<div><br></div><div>I am upgrading a project's build from Java 21 to Java 25, and Javadoc generation fails with the following error:</div><div><br></div><div><pre class="gmail-notranslate"><code class="gmail-notranslate">[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar (attach-javadoc) on project spring-batch-notion: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1
[ERROR] /home/runner/work/spring-batch-extensions/spring-batch-extensions/spring-batch-notion/src/main/java/org/springframework/batch/extensions/notion/Sort.java:29: error: reference not found
[ERROR] * The direction defaults to {@link Direction#DEFAULT_DIRECTION}.
[ERROR] ^
[ERROR] The generated documentation contains diagnostic markers for invalid input.
[ERROR] 1 error
[ERROR] Command line was: /usr/lib/jvm/temurin-25-jdk-amd64/bin/javadoc -J-Duser.language= -J-Duser.country= @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in '/home/runner/work/spring-batch-extensions/spring-batch-extensions/spring-batch-notion/target/reports/apidocs' dir.</code></pre></div><div><br></div><div>Given that it was working fine on 21, I imagine it could be a regression.</div><div><br></div><div>Reference: <a href="https://github.com/spring-projects/spring-batch-extensions/pull/192">https://github.com/spring-projects/spring-batch-extensions/pull/192</a></div><div><br></div><div>Thanks in advance for any feedback!</div><div><br></div><div>Best regards,</div><div>Stefano</div></div>