[
https://issues.apache.org/jira/browse/GROOVY-7959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-7959.
-----------------------------
> ResourceBundle.getBundle(String, Locale) fails inside Groovy constructor
> (MissingResourceException)
> ---------------------------------------------------------------------------------------------------
>
> Key: GROOVY-7959
> URL: https://issues.apache.org/jira/browse/GROOVY-7959
> Project: Groovy
> Issue Type: Bug
> Components: groovy-jdk
> Affects Versions: 2.4.7
> Environment: Groovy Version: 2.4.7
> JVM: 1.8.0_102
> Reporter: Jonas Havers
> Assignee: Jochen Theodorou
> Priority: Minor
>
> Groovy throws a {{MissingResourceException}} when invoking
> {{ResourceBundle.getBundle(String, Locale)}} to get an existing
> {{ResourceBundle}} inside a constructor.
> {code}
> Caught: java.util.MissingResourceException: Can't find bundle for base name
> [...]
> {code}
> Please see *[this
> gist|https://gist.github.com/JonasHavers/45713ba48f85a4e6852d0565e111bca3]*
> for an example and the comparison to Java.
> There might be an issue with the {{getBundle(ResourceBundle, String,
> Locale)}} method from the
> {{org.codehaus.groovy.runtime.DefaultGroovyStaticMethods}} class.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)