You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Richard Liang (JIRA)" <ji...@apache.org> on 2006/10/30 04:42:16 UTC

[jira] Created: (HARMONY-1999) [classlib][luni] Bug of java.net.URL.toExternalForm

[classlib][luni] Bug of java.net.URL.toExternalForm
---------------------------------------------------

                 Key: HARMONY-1999
                 URL: http://issues.apache.org/jira/browse/HARMONY-1999
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Richard Liang


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

        

[jira] Updated: (HARMONY-1999) [classlib][luni] Bug of java.net.URL.toExternalForm

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1999?page=all ]

Richard Liang updated HARMONY-1999:
-----------------------------------

    Attachment: Harmony-1999.diff

Hello,

Would you please try this patch? Thanks a lot.

Best regards,
Richard.

> [classlib][luni] Bug of java.net.URL.toExternalForm
> ---------------------------------------------------
>
>                 Key: HARMONY-1999
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1999
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         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.
-
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

        

[jira] Resolved: (HARMONY-1999) [classlib][luni] Bug of java.net.URL.toExternalForm

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1999?page=all ]

Paulex Yang resolved HARMONY-1999.
----------------------------------

    Resolution: Fixed

Richard, patch applied at revision r470361, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.


> [classlib][luni] Bug of java.net.URL.toExternalForm
> ---------------------------------------------------
>
>                 Key: HARMONY-1999
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1999
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: 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.
-
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

        

[jira] Assigned: (HARMONY-1999) [classlib][luni] Bug of java.net.URL.toExternalForm

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1999?page=all ]

Paulex Yang reassigned HARMONY-1999:
------------------------------------

    Assignee: Paulex Yang

> [classlib][luni] Bug of java.net.URL.toExternalForm
> ---------------------------------------------------
>
>                 Key: HARMONY-1999
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1999
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: 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.
-
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