groovy

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-3
  • Fix Version/s: 1.0-JSR-6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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.

Activity

Hide
blackdrag blackdrag added a comment -

GroovyClassLoader is now itself a URLClassLoader. The classpath in the configuration is now respected too

Show
blackdrag blackdrag added a comment - GroovyClassLoader is now itself a URLClassLoader. The classpath in the configuration is now respected too

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: