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".
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".
- duplicates
-
JDK-6443693 tools/javac/Paths/Diagnostics.sh provokes bad error message
-
- Resolved
-