groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonas Havers (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-7959) ResourceBundle.getBundle(String, Locale) fails inside Groovy constructor (MissingResourceException)
Date Wed, 05 Oct 2016 09:26:21 GMT
Jonas Havers created GROOVY-7959:
------------------------------------

             Summary: 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
            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.4#6332)

Mime
View raw message