--- old/test/java/net/URLClassLoader/getresourceasstream/Test.java 2016-09-01 22:21:44.610081700 +0800 +++ new/test/java/net/URLClassLoader/getresourceasstream/Test.java 2016-09-01 22:21:43.658416300 +0800 @@ -26,12 +26,12 @@ public class Test { public static void main (String[] args) throws Exception { - test1(); + test1(args[0]); } - public static void test1 () throws Exception { + public static void test1 (String s) throws Exception { URLClassLoader cl = new URLClassLoader (new URL[] { - new URL ("file:./test.jar") + new URL ("file:" + s) }); Class clazz = Class.forName ("Test\u00a3", true, cl); InputStream is = clazz.getResourceAsStream ("Test\u00a3.class");