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

Error when creating a diagnostic based on an exception's detail message.

XMLWordPrintable

    • b31
    • generic
    • generic



      Within javac.main.JavaCompiler there are a couple of calls like this:

          log.error(Position.NOPOS, ex.getMessage());

      But the second argument of log.error() should be a resource
      bundle key, not a free-format string. This leads to:

          error: compiler message file broken: key=compiler.err.file p/A.class not found arguments={0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}
          java.lang.RuntimeException
      at com.sun.tools.javac.util.Log.printDiagnostic(Log.java:270)
      at com.sun.tools.javac.util.Log.error(Log.java:316)
      at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:363)
      ...

      ###@###.### 2005-2-15 20:33:26 GMT

            ahe Peter Ahe
            sseligmasunw Scott Seligman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: