harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-3859) [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String
Date Tue, 15 May 2007 03:32:16 GMT

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


Mime
View raw message