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