You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kelvin Ye (JIRA)" <ji...@apache.org> on 2007/05/15 05:30:16 UTC

[jira] Created: (HARMONY-3859) [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String

[classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String
----------------------------------------------------------------------------------------------------------

                 Key: HARMONY-3859
                 URL: https://issues.apache.org/jira/browse/HARMONY-3859
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Linux and Windows
            Reporter: Kelvin Ye


When cast the return object of java.naming.ldap.LdapName.remove(int) to String, harmony will throw ClassCastException. But RI will successfully run through. Please see the test code below.

    public void testRemove() throws Exception {
        LdapName ln = new LdapName("t=test, t1=test1");
        assertEquals("t=test", (String)ln.remove(1));
    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-3859) [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang reassigned HARMONY-3859:
------------------------------------

    Assignee: Paulex Yang

> [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3859
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3859
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux and Windows
>            Reporter: Kelvin Ye
>         Assigned To: Paulex Yang
>         Attachments: harmony-3859.diff
>
>
> When cast the return object of java.naming.ldap.LdapName.remove(int) to String, harmony will throw ClassCastException. But RI will successfully run through. Please see the test code below.
>     public void testRemove() throws Exception {
>         LdapName ln = new LdapName("t=test, t1=test1");
>         assertEquals("t=test", (String)ln.remove(1));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-3859) [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye closed HARMONY-3859.
------------------------------


Verified. It's OK. Thanks very much!

> [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3859
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3859
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux and Windows
>            Reporter: Kelvin Ye
>         Assigned To: Paulex Yang
>         Attachments: harmony-3859.diff
>
>
> When cast the return object of java.naming.ldap.LdapName.remove(int) to String, harmony will throw ClassCastException. But RI will successfully run through. Please see the test code below.
>     public void testRemove() throws Exception {
>         LdapName ln = new LdapName("t=test, t1=test1");
>         assertEquals("t=test", (String)ln.remove(1));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-3859) [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang resolved HARMONY-3859.
----------------------------------

    Resolution: Fixed

Kelvin, patch applied at r538049, please verify, thanks a lot.

> [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3859
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3859
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux and Windows
>            Reporter: Kelvin Ye
>         Assigned To: Paulex Yang
>         Attachments: harmony-3859.diff
>
>
> When cast the return object of java.naming.ldap.LdapName.remove(int) to String, harmony will throw ClassCastException. But RI will successfully run through. Please see the test code below.
>     public void testRemove() throws Exception {
>         LdapName ln = new LdapName("t=test, t1=test1");
>         assertEquals("t=test", (String)ln.remove(1));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3859) [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3859:
-------------------------------

    Attachment: harmony-3859.diff

Please try the patch harmony-3859.diff. Thanks!

> [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3859
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3859
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux and Windows
>            Reporter: Kelvin Ye
>         Attachments: harmony-3859.diff
>
>
> When cast the return object of java.naming.ldap.LdapName.remove(int) to String, harmony will throw ClassCastException. But RI will successfully run through. Please see the test code below.
>     public void testRemove() throws Exception {
>         LdapName ln = new LdapName("t=test, t1=test1");
>         assertEquals("t=test", (String)ln.remove(1));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.