From 78409ae5e92804d3638eac918d567e96988be03d Mon Sep 17 00:00:00 2001 From: Martin Styk Date: Wed, 7 Sep 2016 09:25:57 +0200 Subject: [PATCH] ARTEMIS-713 Possible integer overflow in SubscriptionsResource.recreateTopicConsumer --- .../activemq/artemis/rest/topic/SubscriptionsResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java index 2fcbdd5285..2f5156a482 100644 --- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java +++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java @@ -376,7 +376,7 @@ public class SubscriptionsResource implements TimeoutTask.Callback { if (subscriptionExists(subscriptionId)) { QueueConsumer tmp = null; try { - tmp = createConsumer(true, autoAck, subscriptionId, null, consumerTimeoutSeconds * 1000, false); + tmp = createConsumer(true, autoAck, subscriptionId, null, consumerTimeoutSeconds * 1000l, false); } catch (ActiveMQException e) { throw new RuntimeException(e);