[cp-patches] Patch: FYI: PR 27563

Tom Tromey tromey at redhat.com
Tue May 16 17:55:36 UTC 2006


I'm checking this in.

This fixes PR 27563 by changing the name of the key used for integer
formats.  No existing locale uses this.

Tom

2006-05-16  Tom Tromey  <tromey at redhat.com>

	PR classpath/27563:
	* java/text/NumberFormat.java (getIntegerInstance): Use
	"integerFormat", not "numberFormat".

Index: java/text/NumberFormat.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/text/NumberFormat.java,v
retrieving revision 1.18
diff -u -r1.18 NumberFormat.java
--- java/text/NumberFormat.java	23 Jul 2005 20:25:15 -0000	1.18
+++ java/text/NumberFormat.java	16 May 2006 17:57:21 -0000
@@ -481,7 +481,7 @@
    */
   public static NumberFormat getIntegerInstance(Locale locale)
   {
-    NumberFormat format = computeInstance (locale, "numberFormat", "#,##0");
+    NumberFormat format = computeInstance (locale, "integerFormat", "#,##0");
     format.setMaximumFractionDigits(0);
     format.setParseIntegerOnly (true);
     return format;



More information about the Classpath-patches mailing list