You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/12/13 03:32:22 UTC

[jira] Updated: (HARMONY-2136) [classlib][luni] URL.equals() does not resolve an empty hostname and "localhost" as the same

     [ http://issues.apache.org/jira/browse/HARMONY-2136?page=all ]

Leo Li updated HARMONY-2136:
----------------------------

    Attachment: patch-2316.diff

Will somebody try the patch?

> [classlib][luni] URL.equals() does not resolve an empty hostname and "localhost" as the same
> --------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2136
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2136
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Oliver Deakin
>            Priority: Minor
>         Attachments: patch-2316.diff
>
>
> Running the following:
> 	URL urla = new URL("file:///anyfile");
> 	URL urlb = new URL("file://localhost/anyfile");
> 	if (urla.equals(urlb)) {
> 		System.out.println("PASS");
> 	} else {
> 		System.out.println("FAIL");
> 	}
> on the RI produces: PASS
> but on Harmony (+IBM VME) produces: FAIL

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira