"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/org/codehaus/groovy/tools/RootLoader.java" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

RootLoader.java  (apache-groovy-src-3.0.8):RootLoader.java  (apache-groovy-src-3.0.9)
skipping to change at line 77 skipping to change at line 77
* --> parentLoader is unable to find B.class in a.jar or c.jar * --> parentLoader is unable to find B.class in a.jar or c.jar
* --> NoClassDefFoundException! * --> NoClassDefFoundException!
* </pre> * </pre>
* *
* if childLoader had tried to load the class by itself, there * if childLoader had tried to load the class by itself, there
* would be no problem. Changing childLoader to be a RootLoader * would be no problem. Changing childLoader to be a RootLoader
* instance will solve that problem. * instance will solve that problem.
*/ */
public class RootLoader extends URLClassLoader { public class RootLoader extends URLClassLoader {
private static final URL[] EMPTY_URL_ARRAY = new URL[0]; private static final URL[] EMPTY_URL_ARRAY = new URL[0];
private final Map<String, Class> customClasses = new HashMap<String, Class>( ); private final Map<String, Class> customClasses = new HashMap<>();
private static final String ORG_W3C_DOM_NODE = "org.w3c.dom.Node"; private static final String ORG_W3C_DOM_NODE = "org.w3c.dom.Node";
/** /**
* constructs a new RootLoader without classpath * constructs a new RootLoader without classpath
* *
* @param parent the parent Loader * @param parent the parent Loader
*/ */
private RootLoader(ClassLoader parent) { public RootLoader(ClassLoader parent) {
this(EMPTY_URL_ARRAY, parent); this(EMPTY_URL_ARRAY, parent);
} }
/** /**
* constructs a new RootLoader with a parent loader and an * constructs a new RootLoader with a parent loader and an
* array of URLs as classpath * array of URLs as classpath
*/ */
public RootLoader(URL[] urls, ClassLoader parent) { public RootLoader(URL[] urls, ClassLoader parent) {
super(urls, parent); super(urls, parent);
// major hack here...! // major hack here...!
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)