diff --git a/classpath/avian/SystemClassLoader.java b/classpath/avian/SystemClassLoader.java index afdee82ed3..ce9cdcd7a3 100644 --- a/classpath/avian/SystemClassLoader.java +++ b/classpath/avian/SystemClassLoader.java @@ -107,9 +107,9 @@ public class SystemClassLoader extends ClassLoader { } } - URL url = findResource(name); - if (url != null) { - urls.add(url); + Enumeration urls2 = findResources(name); + while (urls2.hasMoreElements()) { + urls.add(urls2.nextElement()); } return Collections.enumeration(urls);