Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 4549 invoked from network); 17 May 2007 05:37:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 05:37:37 -0000 Received: (qmail 9571 invoked by uid 500); 17 May 2007 05:37:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 9548 invoked by uid 500); 17 May 2007 05:37:43 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 9536 invoked by uid 99); 17 May 2007 05:37:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 22:37:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 22:37:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7AF7F714070 for ; Wed, 16 May 2007 22:37:16 -0700 (PDT) Message-ID: <8752769.1179380236501.JavaMail.jira@brutus> Date: Wed, 16 May 2007 22:37:16 -0700 (PDT) From: "Kelvin Ye (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-3879) [classlib][jndi] Method size() of class javax.naming.ldap.LdapName return different value from RI In-Reply-To: <7741574.1179317716818.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.