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

Broken msg.bug diagnostics when using the compiler API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 12
    • 10, 11, 12
    • 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());

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

              Created:
              Updated:
              Resolved: