JDK-8163395 : [TBD] address doclint initialization and use
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2016-08-08
  • Updated: 2023-11-02
  • Resolved: 2023-11-02
Description
Needs investigation
Comments
Not an issue anymore with doclint move to jdk.javadoc module.
02-11-2023

The primary issue here is the use of Context and BasicJavacTask to init DocLint, as exemplified here: JavacTask t = BasicJavacTask.instance(toolEnv.context); doclint = new DocLint(); // standard doclet normally generates H1, H2 doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2"); doclint.init(t, doclintOpts.toArray(new String[doclintOpts.size()]), false); Within doclint.init, the use of the task is to access the utility classes DocTees, Elements and Types. Messages are printed out through the (Doc)Trees API. This might imply it is relatively easy to fix this "WorkAround".
08-08-2016