[ http://issues.apache.org/jira/browse/VELOCITY-252?page=all ] Nathan Bubna closed VELOCITY-252: ---------------------------------
Assign To: (was: Velocity Developers Mailing List) this was resolved before the 1.1 release. > Custom format in NumberTool doesn't use the provided Locale > ----------------------------------------------------------- > > Key: VELOCITY-252 > URL: http://issues.apache.org/jira/browse/VELOCITY-252 > Project: Velocity > Type: Bug > Components: Tools > Versions: 1.4 > Environment: Operating System: All > Platform: All > Reporter: Lari Hotari > > There is a small bug in NumberTool, it doesn't use the provided Locale when > using a custom format. > patch: > Index: NumberTool.java > =================================================================== > RCS file: > /home/cvspublic/jakarta-velocity-tools/src/java/org/apache/velocity/tools/generic/NumberTool.java,v > retrieving revision 1.1 > diff -u -r1.1 NumberTool.java > --- NumberTool.java 6 Dec 2003 05:44:37 -0000 1.1 > +++ NumberTool.java 3 Feb 2004 05:44:32 -0000 > @@ -223,7 +223,7 @@ > if (style < 0) > { > // we have a custom format > - nf = new DecimalFormat(format, new > DecimalFormatSymbols(getLocale())); > + nf = new DecimalFormat(format, new DecimalFormatSymbols(locale)); > } > else > { -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]