Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8005094

The plugin code in javac.main.Main should be invoked from JavacTaskImpl.prepareCompiler

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Understanding:
      Fix Understood

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                jjg Jonathan Gibbons
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: