From 12716a3e8f845647e886bd60327730711568b70c Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 7 Sep 2016 11:57:43 -0400 Subject: [PATCH] ARTEMIS-713 Possible integer overflow in SubscriptionsResource.recreateTopicConsumer Fixing compilation --- .../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 2f5156a482..56cbab480c 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 * 1000l, false); + tmp = createConsumer(true, autoAck, subscriptionId, null, consumerTimeoutSeconds * 1000L, false); } catch (ActiveMQException e) { throw new RuntimeException(e);