commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Jevardat (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1467) Avoid throwing exceptions when using default locale
Date Tue, 28 Aug 2018 12:31:00 GMT

    [ https://issues.apache.org/jira/browse/MATH-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594907#comment-16594907
] 

Gregory Jevardat commented on MATH-1467:
----------------------------------------

I'll try.

First issue is that the dependency 

<dependency>
 <groupId>org.apache.commons</groupId>
 <artifactId>commons-rng-sampling</artifactId>
 <version>1.1-SNAPSHOT</version>
</dependency> is not found by default. So I switched to 1.1 for being able to build
the project in IntelliJ

 

 

> 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
>
> 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
(v7.6.3#76005)

Mime
View raw message