Description
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