directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 37039 - incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder
Date Wed, 25 Aug 2004 19:13:54 GMT
Author: akarasulu
Date: Wed Aug 25 12:13:52 2004
New Revision: 37039

Modified:
   incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/AttributeEncoder.java
Log:
Solved bug in Jira http://nagoya.apache.org/jira/browse/DIRSNICKERS-91 where
the order of encoding was being flipped due to child tuple additions to the
back of the child tuple list.  By adding to the front now instead of the back
the order of attribute values is maintained NOT flipped.  This way attribute
comparisions where order is significant works properly when snickers encoders
are used.


Modified: incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/AttributeEncoder.java
==============================================================================
--- incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/AttributeEncoder.java
(original)
+++ incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/AttributeEncoder.java
Wed Aug 25 12:13:52 2004
@@ -85,7 +85,7 @@
         {
             child = ( DefaultMutableTupleNode )
                 EncoderUtils.encode( ( String ) list.nextElement() );
-            setOf.addLast( child );
+            setOf.addFront( child );
             child.setParent( setOf );
         }
 

Mime
View raw message