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:37:16 UTC
[jira] Closed: (HARMONY-3879) [classlib][jndi] Method size() of
class javax.naming.ldap.LdapName return different value from RI
[ https://issues.apache.org/jira/browse/HARMONY-3879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Ye closed HARMONY-3879.
------------------------------
Verified. It's OK. Thanks very much!
> [classlib][jndi] Method size() of class javax.naming.ldap.LdapName return different value from RI
> -------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3879
> URL: https://issues.apache.org/jira/browse/HARMONY-3879
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Linux and Windows
> Reporter: Kelvin Ye
> Assigned To: Paulex Yang
> Attachments: harmony-3879.diff
>
>
> When I construct a Ldapname with a instance of ArrayList and if I modify the inputted ArrayList, the instance of Ldapname will be modified too, but RI will not. Please see the sample code below.
> public void testAddString() throws Exception {
> LinkedList ll = new LinkedList();
> ll.add(new Rdn("t=test"));
> LdapName ln = new LdapName(ll);
> ln.add("t1=test1");
> ll.remove(0);
> assertEquals(2, ln.size());
> }
> Harmony will return "1" for ln.size(), but RI will return "2".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.