From f3407fe4b2ff64f144b382d22f771d066051c7a0 Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Fri, 4 Jan 2013 16:22:32 +0000 Subject: [PATCH] Fix broken unit test, openwire.v*.WireFormatInfoTest max property size not set correctly. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1428953 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/util/MarshallingSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java b/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java index 62ace15468..acbb71c9ee 100755 --- a/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java +++ b/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java @@ -80,7 +80,7 @@ public final class MarshallingSupport { } public static Map unmarshalPrimitiveMap(DataInputStream in, int maxPropertySize) throws IOException { - return unmarshalPrimitiveMap(in, Integer.MAX_VALUE, false); + return unmarshalPrimitiveMap(in, maxPropertySize, false); } /** @@ -106,7 +106,7 @@ public final class MarshallingSupport { } } - public static void marshalPrimitiveList(List list, DataOutputStream out) throws IOException { + public static void marshalPrimitiveList(List list, DataOutputStream out) throws IOException { out.writeInt(list.size()); for (Object element : list) { marshalPrimitive(out, element);