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/06/18 02:26:48 UTC

svn commit: r191231 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java

Author: elecharny
Date: Fri Jun 17 17:26:47 2005
New Revision: 191231

URL: http://svn.apache.org/viewcvs?rev=191231&view=rev
Log:
Changed the getSize method to make it returns the real TLV size.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java?rev=191231&r1=191230&r2=191231&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java Fri Jun 17 17:26:47 2005
@@ -133,6 +133,6 @@
 	 * @return Returns the size of the TLV.
 	 */
 	public int getSize() {
-		return tag.getSize() + length.getSize();
+		return tag.getSize() + length.getSize() + length.getLength();
 	}
 }