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

Classloader does not find resources properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6-beta-2, 1.6-rc-1
    • 1.6-rc-3, 1.7-beta-1
    • None
    • None

    Description

      The problem appeared in beta 2, and is deeply described at the following post : http://www.nabble.com/1.6-RC-1-and-ResourceBundle-%28classloading-issue--%29-td21146272.html

      It seems that the classloader is not able to resolve some resources. The following line of code works :

      ResourceBundle.getBundle("i18n.xtirp", Locale.getDefault(), this.class.classLoader)

      while this does not :

      ResourceBundle.getBundle("i18n.xtirp")

      The latter should work properly, but throws a missing resource exception.

      Attachments

        1. resourcebundle.patch
          1 kB
          Cédric Champeau

        Activity

          People

            blackdrag Jochen Theodorou
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: