jdk/test/java/net/URI/URItoURLTest.java
changeset 36511 9d0388c6b336
parent 35393 12d55e1947f7
--- a/jdk/test/java/net/URI/URItoURLTest.java	Tue Mar 15 13:48:26 2016 -0700
+++ b/jdk/test/java/net/URI/URItoURLTest.java	Thu Mar 17 19:04:16 2016 +0000
@@ -38,9 +38,7 @@
 
     public static void main(String args[]) throws Exception {
 
-        URItoURLTest testClass = new URItoURLTest();
-        URL classUrl = testClass.getClass().
-                                    getResource("/java/lang/Object.class");
+        URL classUrl = new URL("jrt:/java.base/java/lang/Object.class");
 
         String[] uris = {
                         "mailto:xyz@abc.de",