JDK-6339852 : error message: compiler message file broken
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-10-20
  • Updated: 2010-08-06
  • Resolved: 2005-10-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b59Fixed
Description
JDK: starting in mustang b57

how to reproduce:
===================
sample 1:
sr1-usca-02:/net/jre.sfbay/p/v08/jdk/6.0/ea/b57/binaries/solaris-sparc/bin 258 % ./javac -Xprint abc

error: compiler message file broken: key=compiler.err.cant.find.class arguments=abc, {1}, {2}, {3}, {4}, {5}, {6}, {7}1 error


sample 2:
sr1-usca-02:/home/chien/tools/test/6.0/options/save/argfile 247 % /home/chien/jdk/mustang/b57/jdk1.6.0/bin/javac -cp . -processorpath ./option.jar -processor OptionCheck -sourcepath ./ ./Marked.java  -Afoo -Abar -A foo

error: compiler message file broken: key=compiler.err.cant.find.class arguments=foo, {1}, {2}, {3}, {4}, {5}, {6}, {7}
1 error

Comments
SUGGESTED FIX Index: src/share/classes/com/sun/tools/javac/main/JavaCompiler.java =================================================================== @@ -834,7 +834,7 @@ cs.complete(); } } catch(Symbol.CompletionFailure cf) { - log.error("cant.find.class", currentClass); + log.error("proc.cant.find.class", currentClass); return this; // TODO: Will this halt compilation? }
20-10-2005

EVALUATION I see thre possible reasons for this problem: 1. the error message is missing 2. the key is misspelled 3. the resources aren't setup correctly
20-10-2005