-
Enhancement
-
Resolution: Fixed
-
P4
-
9
-
b55
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085360 | emb-9 | Jan Lahoda | P4 | Resolved | Fixed | team |
As part of clearing doclint warnings from the JDK code base (JDK-8071630), it has been observed that neither the doclint checking that could be done by javac during a JDK build nor the doclint checking that could be done by javadoc during a docs build aligns well with the portions of the JDK code base that have been cleared of javadoc warnings.
Attempting to use doclint with javac would require fixing thousands of warnings in the sun.*, com.sun.*, and jdk.internal.* packages for which javadoc is not generated.
Attempting to use doclint with javadoc would require fixing thousands of warnings in the corba, jaxp, and jaxws repositories, which is a noble goal, but not one likely to be achieved any time soon.
Despite this, most of the packages in the jdk Hg repository for which documentation is generated are clear or nearly clear of doclint warnings. However, they are at constant risk of doclint regressions being introduced since there is no on-going programmatic enforcement of doclint checks.
If doclint checking could be enabled in javac for only for type meeting a package name filter, that would allow enforcement of a useful and practical doclint policy. (Filtering on modules instead of packages would be too coarse since not all types in a module are exported or have javadoc generated for them.)
Attempting to use doclint with javac would require fixing thousands of warnings in the sun.*, com.sun.*, and jdk.internal.* packages for which javadoc is not generated.
Attempting to use doclint with javadoc would require fixing thousands of warnings in the corba, jaxp, and jaxws repositories, which is a noble goal, but not one likely to be achieved any time soon.
Despite this, most of the packages in the jdk Hg repository for which documentation is generated are clear or nearly clear of doclint warnings. However, they are at constant risk of doclint regressions being introduced since there is no on-going programmatic enforcement of doclint checks.
If doclint checking could be enabled in javac for only for type meeting a package name filter, that would allow enforcement of a useful and practical doclint policy. (Filtering on modules instead of packages would be too coarse since not all types in a module are exported or have javadoc generated for them.)
- backported by
-
JDK-8085360 Provide filtering of doclint checking based on packages
-
- Resolved
-
- blocks
-
JDK-8072734 Turn on doclint checking in the build of modules in the jdk repo
-
- Resolved
-
- relates to
-
JDK-8129909 Add -Xdoclint/package: to javadoc
-
- Closed
-
-
JDK-8071630 Fix remaining doclint warnings in the jdk repo
-
- Closed
-
-
JDK-8042878 JEP 212: Resolve Lint and Doclint Warnings
-
- Closed
-