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/17 07:41:16 UTC

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

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