Bug 27563 - java.text.NumberFormat#getNumberInstance(Locale) and getIntegerInstance(Locale) should use different resource names
Summary: java.text.NumberFormat#getNumberInstance(Locale) and getIntegerInstance(Local...
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: 0.90
: P3 normal
Target Milestone: 0.92
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 20:13 UTC by KiYun Roe
Modified: 2006-05-16 18:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KiYun Roe 2006-05-11 20:13:49 UTC
java.text.NumberFormat#getNumberInstance(Locale) looks for a resource named "numberFormat" and defaults to "#,##0.###" if the resource is not located. 

java.text.NumberFormat#getIntegerInstance(Locale) also looks for a resource named "numberFormat" but defaults to "#,##0" if the resource is not located.

The resource names should be different for these two cases, in case someone wants to actually include resources for them for a locale.
Comment 1 cvs-commit@developer.classpath.org 2006-05-16 18:01:26 UTC
Subject: Bug 27563

CVSROOT:	/cvsroot/classpath
Module name:	classpath
Branch: 	
Changes by:	Tom Tromey <tromey@savannah.gnu.org>	06/05/16 18:00:49

Modified files:
	java/text      : NumberFormat.java 
	.              : ChangeLog 

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

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/java/text/NumberFormat.java.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.7447&tr2=1.7448&r1=text&r2=text



Comment 2 Tom Tromey 2006-05-16 18:01:33 UTC
Fix checked in.