This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: java.text patches
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: java.text patches
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Tue, 21 Sep 1999 12:06:53 -0700
- Cc: java-patches at sourceware dot cygnus dot com
- References: <37E1A8EA.C4BB6E4A@albatross.co.nz>
Bryce> Here's three micellanious patches for the java.text format
Bryce> classes.
I never replied to this -- oops.
Bryce> 1) a tenative fix for libgcj/38 - this fixes the circular
Bryce> initializer dependency by delaying the construction
Bryce> nonLocalizedSymbols until it is actually needed.
I still don't understand this bug. Why does this circular dependency
matter? Shouldn't class initialization work in the presence of
circular dependencies? That is my recollection of the intent of the
code in Class::initializeClass (look for the "step 3" part, which
returns if the class initialization is "in progress").
Bryce> 2) The (String pattern) constructor for MessageFormat just
Bryce> calls applyPattern, which assumes that a locale has been
Bryce> set. It needs to set the default locale before calling
Bryce> applyPattern, or a NullPointerException occurs.
Bryce> 3) NumberFormat throws a ClassCastException if the object being
Bryce> formatted is not actually a Number. It should throw an
Bryce> IllegialArgumentException. Verfified against JDK behaviour.
Please check these two in.
Tom