This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: FYI: java.text merge


Tom wrote:
> Now, if you did `new DateFormatSymbols (new Locale ("ie", "ee"))', and
> didn't change the default locale, then I'd expect things to work...

Ok - here's a new failing test case.  I think it points to a bug in the
ResourceBundle cache, or part of java.util that supports it.

import java.util.Locale;
import java.text.DateFormatSymbols;

public class dfs
{
  public static void main(String args[])
  {
    DateFormatSymbols dfs;

    dfs = new DateFormatSymbols (new Locale ("ie", "es"));
    dfs = new DateFormatSymbols (new Locale ("ie", "es"));
  }
}


Exception in thread "main" java.util.MissingResourceException: Key not found
   at 0x401c8810: java.lang.Throwable.Throwable(java.lang.String)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x401bce06: java.lang.Exception.Exception(java.lang.String)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x401c1606:
java.lang.RuntimeException.RuntimeException(java.lang.String)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x40210a59:
java.util.MissingResourceException.MissingResourceException(java.lang.String,
java.lang.String, java.lang.String)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x40214eb6: java.util.ResourceBundle.getObject(java.lang.String)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x40214e06: java.util.ResourceBundle.getStringArray(java.lang.String)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x4026cf26:
java.text.DateFormatSymbols.DateFormatSymbols(java.util.Locale)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x08048fcd: dfs.main(java.lang.String[]) (/tmp/dfs.java:11)
   at 0x401a2c48: gnu.gcj.runtime.FirstThread.call_main()
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x4022eef8: gnu.gcj.runtime.FirstThread.run()
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x401afe8c: _Jv_ThreadRun(java.lang.Thread)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x40189964: _Jv_RunMain(java.lang.Class, byte const, int, byte const,
boolean) (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x40189abd: JvRunMain
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
   at 0x08048f08: main (/tmp/cce5Toxumain.i:0)
   at 0x405041eb: __libc_start_main (/lib/libc.so.6)
   at 0x08048e05: _init ((null):0)




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]