You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2009/02/20 16:00:34 UTC

svn commit: r746267 - /activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBufferSupport.java

Author: chirino
Date: Fri Feb 20 15:00:33 2009
New Revision: 746267

URL: http://svn.apache.org/viewvc?rev=746267&view=rev
Log:
Fixing assertion

Modified:
    activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBufferSupport.java

Modified: activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBufferSupport.java
URL: http://svn.apache.org/viewvc/activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBufferSupport.java?rev=746267&r1=746266&r2=746267&view=diff
==============================================================================
--- activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBufferSupport.java (original)
+++ activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBufferSupport.java Fri Feb 20 15:00:33 2009
@@ -18,7 +18,7 @@
             CodedOutputStream output = new CodedOutputStream(baos);
             message.writeUnframed(output);
             Buffer rc = baos.toBuffer();
-            assert rc.length != size : "Did not write as much data as expected.";
+            assert rc.length == size : "Did not write as much data as expected.";
             return rc;
         } catch (IOException e) {
             throw new RuntimeException("Serializing to a byte array threw an IOException " + "(should never happen).", e);