[commit-cp] classpath ChangeLog java/text/DecimalFormat.jav...

Andrew John Hughes <[email protected]> Sun, 17 Aug 2008 22:31:56 +0000
Newsgroups gmane.comp.java.classpath.cvs
Message-ID <[email protected]>
CVSROOT:	/sources/classpath
Module name:	classpath
Changes by:	Andrew John Hughes <gnu_andrew>	08/08/17 22:31:56

Modified files:
	.              : ChangeLog 
	java/text      : DecimalFormat.java DecimalFormatSymbols.java 
	java/util      : Currency.java 

Log message:
	Fix setCurrency in DecimalFormat.
	
	2008-08-17  Andrew John Hughes  <[email protected]>
	
		PR classpath/31895:
		* java/text/DecimalFormat.java:
		(setCurrency(Currency)): Update prefixes and
		suffixes when currency changes.
		* java/text/DecimalFormatSymbols.java:
		(DecimalFormatSymbols(Locale)): Set locale earlier
		so it can be used by setCurrency(Currency).
		(setCurrency(Currency)): Set the symbol correctly using
		the locale of the instance.
		* java/util/Currency.java:
		Throw error instead of just printing a message.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9694&r2=1.9695
http://cvs.savannah.gnu.org/viewcvs/classpath/java/text/DecimalFormat.java?cvsroot=classpath&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/classpath/java/text/DecimalFormatSymbols.java?cvsroot=classpath&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/Currency.java?cvsroot=classpath&r1=1.19&r2=1.20