-
Bug
-
Resolution: Fixed
-
P3
-
11, 15
-
b18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246171 | 11.0.9-oracle | Hannes Wallnoefer | P3 | Resolved | Fixed | b01 |
JDK-8249250 | 11.0.9 | Hannes Wallnoefer | P3 | Resolved | Fixed | b01 |
The javadoc tool fails with "The code being documented uses modules but the packages defined in $URL are in the unnamed module." when it consumes Java modules which published their API documentation in a non-modular fashion.
"javadoc ... -link https://ota4j-team.github.io/opentest4j/docs/1.2.0/api" fails
due to:
- Module "org.opentest4j" ships with a compiled module descriptor
- Its API documentation is generated and published without modules
Being in the transition phase from the non-modular to the modular world, this kind of work-around will show up more often. Library authors will inject "module-info.class" files into their library JAR files ... without producing modular API documentation at the same time, for a while.
Perhaps, javadoc may try to fall-back to the non-modular API input format, if it cosumes a "-link"ed module that lacks modular API documentation files.
Modular example project:
https://github.com/sormuras/sandbox/tree/master/javadoc-link-non-modular
Log with the error messages:
https://github.com/sormuras/sandbox/runs/471844267#step:5:28
- backported by
-
JDK-8246171 javadoc fails to link to docs with non-matching modularity
- Resolved
-
JDK-8249250 javadoc fails to link to docs with non-matching modularity
- Resolved
- duplicates
-
JDK-8240194 Improve/fix javadoc support for linking to docs for automatic modules
- Closed
-
JDK-8240232 Javadoc fails to link to modular jars from non-modular project
- Closed
-
JDK-8241640 Javadoc error if unnamed module depends on named module
- Closed
- relates to
-
JDK-8212233 javadoc fails on jdk12 with "The code being documented uses modules but the packages defined in $URL are in the unnamed module."
- Resolved
-
JDK-8250954 Avoid multiple warnings for external docs with mismatching modularity
- Resolved
-
JDK-8240194 Improve/fix javadoc support for linking to docs for automatic modules
- Closed
-
JDK-8240232 Javadoc fails to link to modular jars from non-modular project
- Closed
-
JDK-8241640 Javadoc error if unnamed module depends on named module
- Closed