This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git


The following commit(s) were added to refs/heads/2.3-gae by this push:
     new c5fb0e7  fix constructor of ExtendedDecimalFormatParser
     new 01624c5  Merge pull request #64 from 
tocco/fix_extended_decimal_format_parser
c5fb0e7 is described below

commit c5fb0e7cb1cac07ff8d8cf97ab584a9e800b5602
Author: Adrian Schmid <[email protected]>
AuthorDate: Thu Dec 19 13:14:34 2019 +0100

    fix constructor of ExtendedDecimalFormatParser
    
    use DecimalFormatSymbols.getInstance(locale) instead of the constructor
    to properly work with other DecimalFormatSymbolsProvider implementations.
---
 src/main/java/freemarker/core/ExtendedDecimalFormatParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/freemarker/core/ExtendedDecimalFormatParser.java 
b/src/main/java/freemarker/core/ExtendedDecimalFormatParser.java
index 03d71eb..d8cd611 100644
--- a/src/main/java/freemarker/core/ExtendedDecimalFormatParser.java
+++ b/src/main/java/freemarker/core/ExtendedDecimalFormatParser.java
@@ -479,7 +479,7 @@ class ExtendedDecimalFormatParser {
 
     private ExtendedDecimalFormatParser(String formatString, Locale locale) {
         src = formatString;
-        this.symbols = new DecimalFormatSymbols(locale);
+        this.symbols = DecimalFormatSymbols.getInstance(locale);
     }
 
     private ParseException newExpectedSgParseException(String expectedThing) {

Reply via email to