You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI builds on Java 8, where System.getProperty("java.home") points at the
JRE inside the JDK, so the task looked for javadoc at
temurin-8-jdk-amd64/jre/bin/javadoc and died with "No such file or
directory". Resolve the executable through the java toolchain instead,
which always gives the JDK location.
The task was also only meaningful on JDKs whose doclint reports missing
documentation, which Java 8 and 11 do not, so it would have gone on to
run a check that proves nothing. It now probes the javadoc it is about
to use with a deliberately undocumented method, using the same flags as
the real run, and skips with a message unless that probe is reported.
Probing the flags too means an unsupported option also skips rather than
failing the build.
Verified: skips on JDK 11, skips on an unsupported flag, passes on JDK 25
with the documentation complete, and fails on JDK 25 with a comment
removed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments