jdk/test/java/net/URI/URItoURLTest.java
changeset 36511 9d0388c6b336
parent 35393 12d55e1947f7
equal deleted inserted replaced
36510:043f1af70518 36511:9d0388c6b336
    36 
    36 
    37 public class URItoURLTest {
    37 public class URItoURLTest {
    38 
    38 
    39     public static void main(String args[]) throws Exception {
    39     public static void main(String args[]) throws Exception {
    40 
    40 
    41         URItoURLTest testClass = new URItoURLTest();
    41         URL classUrl = new URL("jrt:/java.base/java/lang/Object.class");
    42         URL classUrl = testClass.getClass().
       
    43                                     getResource("/java/lang/Object.class");
       
    44 
    42 
    45         String[] uris = {
    43         String[] uris = {
    46                         "mailto:xyz@abc.de",
    44                         "mailto:xyz@abc.de",
    47                         "file:xyz#ab",
    45                         "file:xyz#ab",
    48                         "http:abc/xyz/pqr",
    46                         "http:abc/xyz/pqr",