------- Additional Comments From gnu_andrew at member dot fsf dot org 2005-01-20 19:37 ------- This testcase fails on gcj (up to 3.4 at least), GNU Classpath CVS HEAD and Sun's JDK. Reading the specification for java.util.ResourceBundle suggests that this is the correct behaviour; the combination of bundle names tried includes both those for the supplied locale, the base name and the default locale.
Adding Locale.setDefault(new Locale("yi","yi")) confirms this by making the test path using Classpath CVS (although it still fails with Sun's JDK, presumably due to the documented issues with using Locale.setDefault). As a result, I would suggest that this testcase is instead removed. The only cases where a MissingResourceException would be thrown is where the resource bundle really is missing (e.g. a non-existant one such as gnu.java.foo) and this is really a test case for java.util.ResourceBundle rather than this class. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6296