From 41bef7c0b619c7bc925326451a56071b5736580a Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 19 Jun 2013 08:36:16 +0000
Subject: [PATCH] Fix OPENDJ-986: Exception when reading messages from Replication server RS

---
 opends/src/server/org/opends/server/replication/protocol/LDAPUpdateMsg.java |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/protocol/LDAPUpdateMsg.java b/opends/src/server/org/opends/server/replication/protocol/LDAPUpdateMsg.java
index bce6fcf..9e5ac9c 100644
--- a/opends/src/server/org/opends/server/replication/protocol/LDAPUpdateMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/LDAPUpdateMsg.java
@@ -82,7 +82,7 @@
   /**
    * Creates a new UpdateMsg.
    */
-  public LDAPUpdateMsg()
+  protected LDAPUpdateMsg()
   {
   }
 
@@ -226,7 +226,7 @@
    */
   public void encode() throws UnsupportedEncodingException
   {
-    bytes = getBytes();
+    bytes = getBytes(ProtocolVersion.getCurrentVersion());
   }
 
   /**
@@ -347,17 +347,6 @@
    * {@inheritDoc}
    */
   @Override
-  public byte[] getBytes()
-  throws UnsupportedEncodingException
-  {
-    // Encode in the current protocol version
-    return getBytes(ProtocolVersion.getCurrentVersion());
-  }
-
-  /**
-   * {@inheritDoc}
-   */
-  @Override
   public byte[] getBytes(short reqProtocolVersion)
     throws UnsupportedEncodingException
   {

--
Gitblit v1.10.0