You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/07/26 23:53:22 UTC
svn commit: r225406 - in
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo:
AbandonRequest.java LdapMessage.java
Author: elecharny
Date: Tue Jul 26 14:53:17 2005
New Revision: 225406
URL: http://svn.apache.org/viewcvs?rev=225406&view=rev
Log:
Fixed the computeLength method, the messageId length was not correctly evaluated.
Modified:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbandonRequest.java
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbandonRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbandonRequest.java?rev=225406&r1=225405&r2=225406&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbandonRequest.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbandonRequest.java Tue Jul 26 14:53:17 2005
@@ -76,7 +76,7 @@
*/
public int computeLength()
{
- return 1 + 1 + Length.getNbBytes( messageId );
+ return 1 + 1 + Length.getBytes( messageId ).length;
}
/**
Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java?rev=225406&r1=225405&r2=225406&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java Tue Jul 26 14:53:17 2005
@@ -391,7 +391,7 @@
// - the tag (0x02), 1 byte
// - the length of the Id length, 1 byte
// - the Id length, 1 to 4 bytes
- int ldapMessageLength = 1 + 1 + Length.getNbBytes(messageId);
+ int ldapMessageLength = 1 + 1 + Length.getBytes(messageId).length;
// Get the protocolOp length
int protocolOpLength = protocolOp.computeLength();