harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Ye (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3879) [classlib][jndi] Method size() of class javax.naming.ldap.LdapName return different value from RI
Date Wed, 16 May 2007 12:15:17 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kelvin Ye updated HARMONY-3879:
-------------------------------

    Component/s: Classlib

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


Mime
View raw message