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

GroovyClassLoader's additionalPaths has no effect on loadClass(string, boolean)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-6
    • None
    • None

    Description

      It seems logical that additionalPaths (as set by specify the classpath in the Configuration) would add paths ot the ClassLoader's classpath, but it does not as loadClass(string, boolean) ignores them. I have been using JCI and trying to determine the best way to set the classpath of the classloader at runtime. Currently it seems best to construct a URLClassLoader with the relevant urls and then instantiate a GroovyClassLoader with that as the parent.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            mdproctor Mark Proctor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: