You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2009/06/25 22:18:07 UTC
[jira] Closed: (HARMONY-1999) [classlib][luni] Bug of
java.net.URL.toExternalForm
[ https://issues.apache.org/jira/browse/HARMONY-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess closed HARMONY-1999.
---------------------------------
Closing as this works for me now with M10.
> [classlib][luni] Bug of java.net.URL.toExternalForm
> ---------------------------------------------------
>
> Key: HARMONY-1999
> URL: https://issues.apache.org/jira/browse/HARMONY-1999
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Richard Liang
> Assignee: Paulex Yang
> Attachments: Harmony-1999.diff
>
>
> Hello,
> There are something wrong in java.net.URL.toExternalForm. The following test case could demonstrate this problem.
> public void test_toExternalForm_Absolute() throws MalformedURLException {
> String strURL = "http://localhost?name=value";
> URL url = new URL(strURL);
> assertEquals(strURL , url.toExternalForm());
> }
>
> public void test_toExternalForm_Relative() throws MalformedURLException {
> String strURL = "http://a/b/c/d;p?q";
> String ref = "?y";
> URL base = new URL(strURL);
> URL url = new URL(base,ref);
> assertEquals("http://a/b/c/?y", url.toExternalForm());
> }
> I will try to provide a patch soon ;-) Thanks a lot.
> Best regards,
> Richard
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.