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

Broken msg.bug diagnostics when using the compiler API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10, 11, 12
    • Fix Version/s: 12
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      When javac 10 and newer are invoked via the API and handle an internal error [1], the crash handling diagnostics are broken, resulting in 'compiler message file broken' instead of the bug parade message.

      [1] http://hg.openjdk.java.net/jdk/jdk/file/b7192ab3fdf5/src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java#l175

      The fix is:

      - log.printLines("msg.bug", JavaCompiler.version());
      + log.printLines(PrefixKind.JAVAC, "msg.bug", JavaCompiler.version());

        Attachments

          Activity

            People

            Assignee:
            cushon Liam Miller-Cushon
            Reporter:
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: