You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2021/06/04 11:25:00 UTC

[jira] [Resolved] (MATH-1467) Avoid throwing exceptions when using default locale

     [ https://issues.apache.org/jira/browse/MATH-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Sadowski resolved MATH-1467.
-----------------------------------
    Resolution: Fixed

> Avoid throwing exceptions when using default locale
> ---------------------------------------------------
>
>                 Key: MATH-1467
>                 URL: https://issues.apache.org/jira/browse/MATH-1467
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.6.1
>            Reporter: Gregory Jevardat
>            Priority: Major
>             Fix For: 4.0
>
>         Attachments: LocalizedFormats.java, LocalizedFormatsTest.java
>
>
> In the LocalizedFormats class the method getLocalizedString systematically throws an exception when the US or EN locale is used.
> It occurs because it tries to load the bundle  in any case and obviously the properties file for EN does not exist. 
> Maybe a little check if an EN locale is used and then returning the sourceFormat would avoid trying to load the bundle and throw exceptions.
> In my case we have intensive (billions) statistical computations and Java Mission Control reports 10-100k's of MissingResourcesExceptions caused by that.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)