|
Quick Lists
|
|
Bug ID:
|
6759682
|
|
Votes
|
0
|
|
Synopsis
|
APT: compiler message file broken after refactoring of com.sun.tools.javac.util.Message
|
|
Category
|
java:compiler
|
|
Reported Against
|
|
|
Release Fixed
|
7(b39)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6406133
,
6732461
|
|
Submit Date
|
15-OCT-2008
|
|
Description
|
APT fails to lookup localized strngs in apt's resource file with messages like the following:
warning: compiler message file broken: key=apt.warn.FactoryNotFound arguments=ErrorFactory, {1}, {2}, {3}, {4}, {5}, {6}, {7}
This causes the failure of the test: test/tools/apt/Compile/compile.sh
Posted Date : 2008-10-15 12:43:00.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
This problem is due to a bug in JavacMessages.addBundle(String bundleName) that has been introduced after the recent fix of 6406133. This method should reset the list of current bundles - so that any subsequent call to JavacMessages.getBundle will effectively refresh the contents of the messages' cache. Since current bundes are not reset after a call to JavacMessages.addBundle, this means that the contents of the messages' cache never get updated (they only get updated if there's a change in the default locale). This causes a failure in APT, as com/sun/tools/apt/util/Bark (which extends Log) needs to add another resource bundle to the bundle list managed by JavacMessages.
Posted Date : 2008-10-15 12:43:00.0
No regression test is needed - the CR has been marked as noreg-other, as we already have regression tests that compare the output of apt against a golden file (such as test/tools/apt/Compiler/compile.sh) that should cover this issue.
Posted Date : 2008-10-15 15:13:25.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |