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);