[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.
|