Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7959

ResourceBundle.getBundle(String, Locale) fails inside Groovy constructor (MissingResourceException)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.4.7
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None
    • Environment:
      Groovy Version: 2.4.7
      JVM: 1.8.0_102

      Description

      Groovy throws a MissingResourceException when invoking ResourceBundle.getBundle(String, Locale) to get an existing ResourceBundle inside a constructor.

      Caught: java.util.MissingResourceException: Can't find bundle for base name [...]
      

      Please see this gist 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.

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              jonas.havers+issues.apache.org@gmail.com Jonas Havers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: