diff -r 05224402145d -r 4252bfc396fc emul/mini/src/main/java/java/lang/ClassLoader.java --- a/emul/mini/src/main/java/java/lang/ClassLoader.java Wed Jan 23 20:39:23 2013 +0100 +++ b/emul/mini/src/main/java/java/lang/ClassLoader.java Tue Feb 26 14:55:55 2013 +0100 @@ -703,7 +703,7 @@ public static Enumeration getSystemResources(String name) throws IOException { - ClassLoader system = getSystemClassLoader(); + ClassLoader system = null; // getSystemClassLoader(); if (system == null) { return getBootstrapResources(name); } @@ -874,7 +874,29 @@ } private static Enumeration getBootstrapResources(String name) { - throw new UnsupportedOperationException(); + URL u = Object.class.getResource("/" + name); + return new OneOrZeroEnum(u); + } + + private static class OneOrZeroEnum implements Enumeration { + private URL u; + + public OneOrZeroEnum(URL u) { + this.u = u; + } + + public boolean hasMoreElements() { + return u != null; + } + + public URL nextElement() { + URL r = u; + if (r == null) { + throw new NoSuchElementException(); + } + u = null; + return r; + } } private static class CompoundEnumeration implements Enumeration {