This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: java.text merge
- To: <tromey at redhat dot com>, "Java Patch List" <java-patches at gcc dot gnu dot org>
- Subject: Re: Patch: FYI: java.text merge
- From: "Anthony Green" <green at redhat dot com>
- Date: Wed, 5 Sep 2001 08:13:46 -0700
- References: <87sne2wl84.fsf@creche.redhat.com>
Tom wrote:
> Here's the java.text merge. See my message to the main list for info
> on the limits of this patch.
Ok, here's a test case for the bug....
import java.util.Locale;
import java.text.DateFormatSymbols;
public class dfs
{
public static void main(String args[])
{
Locale.setDefault (new Locale ("ie", "ee"));
DateFormatSymbols dfs = new DateFormatSymbols ();
System.out.println (dfs);
}
}
What's happening is that we're defaulting to load
gnu.java.locale.LocaleInformation_en which doesn't provide zoneStrings
(required by DateFormatSymbols).
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 0x4026cf6b:
java.text.DateFormatSymbols.DateFormatSymbols(java.util.Locale)
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x4026d2a8: java.text.DateFormatSymbols.DateFormatSymbols()
(/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x0804903d: dfs.main(java.lang.String[]) (/tmp/dfs.java:9)
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 0x08048fbc: main (/tmp/ccipnKnLmain.i:0)
at 0x405041eb: __libc_start_main (/lib/libc.so.6)
at 0x08048eb9: _init ((null):0)