-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Reinstate links to JUnit 5 Javadoc APIs #27497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
/cc @sormuras |
UpdateThanks to a tip from @sormuras, it turns out that the links are actually generated properly in the resulting HTML if we remove the use of Thus, the warning is merely a "warning" that we are not interested in. Unfortunately, (as far as I know) there is currently no way to instruct |
This https://bugs.openjdk.java.net/browse/JDK-8274639 describes the underlying cause and a potential fix. |
Java 18 will introduce a |
Spring Framework 6.0.x is built using Java 17. Since that requires that we execute our Gradle builds with Java 18, we cannot currently address this issue. |
javadoc is able to create external links to libraries documented with "mismatching" modularity, like for JUnit Jupiter, which offers modular documentation. However, a warning is generated when the mismatch happens, and this is a problem when using the `-Werror` option to treat warnings as errors. To circumvent this problem without dropping the `-Werror` option, Java 18 added the `--link-modularity-mismatch=(warn|info)` command line option to specify how external documentation with wrong modularity should be reported. See: * https://docs.oracle.com/en/java/javase/18/docs/specs/man/javadoc.html#standard-options-for-the-standard-doclet * https://bugs.openjdk.org/browse/JDK-8274639 * spring-projects/spring-framework#27497
Reopening to address the issue raised in #34763. |
Changes made in conjunction with #27497 now require that we generate Javadoc with JDK 18 or higher in order to make use of the "--link-modularity-mismatch" flag for the javadoc executable. This commit sets the toolchain for the javadoc task in the framework-api module to use JDK 24 for generating Javadoc. The common javadoc task used by all spring-* modules will be addressed in a separate commit. See gh-27497 See gh-34774
As a follow up to #27480 (see commit 030ba52), we need to determine why we cannot configure external Javadoc links to JUnit 5.
Note that code in the
spring-test
module (e.g., theSpringExtension
for JUnit Jupiter) links to JUnit 5 APIs.If we uncomment the following...
spring-framework/build.gradle
Lines 347 to 352 in 167e538
... we get the following Javadoc warning which fails the build.
Related JDK issues
The text was updated successfully, but these errors were encountered: