JDK-8005094 : The plugin code in javac.main.Main should be invoked from JavacTaskImpl.prepareCompiler
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2012-12-15
  • Updated: 2024-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Currently, plugin support (and upcoming doclint support) are only invoked during a full compilation, either from the command line or via the JSR 199 call/run methods. They are not run if the user downcasts CompilationTask to a JavacTask and calls parse/analyze/generate directly.

This is not a huge deal since anyone running the API at that level has access to registering task listeners directly, but it would be nice to provide uniformity.
Comments
Separate the plugin/doclint code into a separate method that can be invoked from prepareCompiler.
15-12-2012