Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 21249 invoked from network); 18 Dec 2005 23:59:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Dec 2005 23:59:11 -0000 Received: (qmail 23101 invoked by uid 500); 18 Dec 2005 23:59:11 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 23074 invoked by uid 500); 18 Dec 2005 23:59:10 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 23061 invoked by uid 99); 18 Dec 2005 23:59:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 15:59:10 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 18 Dec 2005 15:59:10 -0800 Received: (qmail 21168 invoked by uid 65534); 18 Dec 2005 23:58:49 -0000 Message-ID: <20051218235849.21165.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r357574 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java Date: Sun, 18 Dec 2005 23:58:49 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Sun Dec 18 15:58:45 2005 New Revision: 357574 URL: http://svn.apache.org/viewcvs?rev=357574&view=rev Log: - Called the parseInternal() method which is static - fixed a bug : the get() call returned a String, but we have to get a ATAV. So we don't call get() anymore Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java?rev=357574&r1=357573&r2=357574&view=diff ============================================================================== --- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java (original) +++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java Sun Dec 18 15:58:45 2005 @@ -262,7 +262,7 @@ throw new InvalidNameException( "The byte array is not an UTF-8 encoded Unicode String : " + uee.getMessage() ); } - DNParser.parse( upName, rdns ); + DNParser.parseInternal( upName, rdns ); } // Stores the representations of a DN : internal (as a string and as a byte[]) and external. @@ -285,7 +285,7 @@ try { upName = new String( bytes, "UTF-8" ); - DNParser.parse( upName, rdns ); + DNParser.parseInternal( upName, rdns ); this.string = toString(); this.bytes = bytes; } @@ -664,7 +664,7 @@ throw new NoSuchElementException() ; } - Object obj = get( pos ) ; + Object obj = rdns.get( rdns.size() - pos - 1 ); pos++ ; return obj ; }