harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Shu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6573) [classlib][luni] Can't load classes with file://// and URL class
Date Thu, 08 Jul 2010 08:52:54 GMT
[classlib][luni] Can't load classes with file://// and URL class
----------------------------------------------------------------

                 Key: HARMONY-6573
                 URL: https://issues.apache.org/jira/browse/HARMONY-6573
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M14
            Reporter: Xiao Shu
            Priority: Minor


Run below test case,

import java.net.MalformedURLException;
import java.net.URL;

public class Test {  

    public static void main(String args[]) throws MalformedURLException {
        URL url1 = new URL("file:////home/test.jar");
        System.out.println("getAuthority:" + url1.getAuthority());        
        System.out.println("getFile:" + url1.getFile());
    }

}

The output of harmony is:
getAuthority:
getFile://home/test.jar

while the output of Sun RI is:
getAuthority:null
getFile:////home/test.jar


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message