harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6573) [classlib][luni] Can't load classes with file://// and URL class
Date Fri, 16 Jul 2010 06:27:50 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Regis Xu resolved HARMONY-6573.
-------------------------------

    Fix Version/s: 5.0M15
       Resolution: Fixed

Thanks Xiao Shu!!

The patch was applied to trunk at r964691, please verify.

> [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
>            Assignee: Regis Xu
>            Priority: Minor
>             Fix For: 5.0M15
>
>         Attachments: Harmony-6573.diff
>
>
> 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