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

bad resource key for log.error in DefaultFileManager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • tools
    • None
    • generic
    • generic

      The following obscure error message from the compiler is caused by a bad message key being passed to log.error

      error: compiler message file broken: key=compiler.err.compiler.err.error.reading.file arguments=/tl/ws/fm-relpath/build/linux-i586/installvm/jre/lib/sunrsasign.jar, error in opening zip file, {2}, {3}, {4}, {5}, {6}, {7}

      The bug is caused by the following lines in DefaultFileManager.openArchive


                  } catch (IOException ex) {
                      log.error("compiler.err.error.reading.file", zipFileName, ex.getLocalizedMessage());
                      archive = new MissingArchive(zipFileName);
                  }


      The first arg to log.error should just be "error.reading.file".

            Unassigned Unassigned
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: