You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2011/07/04 13:36:32 UTC

svn commit: r1142630 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java

Author: gtully
Date: Mon Jul  4 11:36:32 2011
New Revision: 1142630

URL: http://svn.apache.org/viewvc?rev=1142630&view=rev
Log:
resolve failure of UdpSendReceiveWithTwoConnectionsAndLargeMessagesTest and UdpSendReceiveWithTwoConnectionsTest, regression from https://issues.apache.org/jira/browse/AMQ-3383, additional wire member shows problem with wireformat copy. relates to https://issues.apache.org/jira/browse/AMQ-3236 - separate versioning of openwire for store and wire

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java?rev=1142630&r1=1142629&r2=1142630&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java Mon Jul  4 11:36:32 2011
@@ -81,8 +81,7 @@ public final class OpenWireFormat implem
     }
 
     public OpenWireFormat copy() {
-        OpenWireFormat answer = new OpenWireFormat();
-        answer.version = version;
+        OpenWireFormat answer = new OpenWireFormat(version);
         answer.stackTraceEnabled = stackTraceEnabled;
         answer.tcpNoDelayEnabled = tcpNoDelayEnabled;
         answer.cacheEnabled = cacheEnabled;