Broken msg.bug diagnostics when using the compiler API

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 12
    • Affects Version/s: 10, 11, 12
    • Component/s: tools
    • None
    • b21

      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());

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

              Created:
              Updated:
              Resolved: