activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r593606 - /activemq/activemq-cpp/trunk/src/main/java/org/apache/activemq/openwire/tool/AmqCppTestMarshallingClassesGenerator.java
Date Fri, 09 Nov 2007 17:51:14 GMT
Author: tabish
Date: Fri Nov  9 09:51:13 2007
New Revision: 593606

URL: http://svn.apache.org/viewvc?rev=593606&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Modified:
    activemq/activemq-cpp/trunk/src/main/java/org/apache/activemq/openwire/tool/AmqCppTestMarshallingClassesGenerator.java

Modified: activemq/activemq-cpp/trunk/src/main/java/org/apache/activemq/openwire/tool/AmqCppTestMarshallingClassesGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/java/org/apache/activemq/openwire/tool/AmqCppTestMarshallingClassesGenerator.java?rev=593606&r1=593605&r2=593606&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/java/org/apache/activemq/openwire/tool/AmqCppTestMarshallingClassesGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/src/main/java/org/apache/activemq/openwire/tool/AmqCppTestMarshallingClassesGenerator.java
Fri Nov  9 09:51:13 2007
@@ -115,7 +115,7 @@
 out.println("        marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut
);");
 out.println("");
 out.println("        // Now read it back in and make sure it's all right.");
-out.println("        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize()
);");
+out.println("        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );");
 out.println("        DataInputStream dataIn( &bais );");
 out.println("        unsigned char dataType = dataIn.readByte();");
 out.println("        CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );");
@@ -161,7 +161,7 @@
 out.println("        marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut,
&bs );");
 out.println("");
 out.println("        // Now read it back in and make sure it's all right.");
-out.println("        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize()
);");
+out.println("        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );");
 out.println("        DataInputStream dataIn( &bais );");
 out.println("");
 out.println("        unsigned char dataType = dataIn.readByte();");



Mime
View raw message