From fe5ff2558e44c3976be25622806858c6dd5060f4 Mon Sep 17 00:00:00 2001
From: gmantele <gmantele@ari.uni-heidelberg.de>
Date: Tue, 9 Dec 2014 15:56:18 +0100
Subject: [PATCH] [TAP] Fix wrong type cast: cast an Integer object into a long
 value is not possible.

---
 src/tap/parameters/TAPExecutionDurationController.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tap/parameters/TAPExecutionDurationController.java b/src/tap/parameters/TAPExecutionDurationController.java
index 6c158d0..dde16d4 100644
--- a/src/tap/parameters/TAPExecutionDurationController.java
+++ b/src/tap/parameters/TAPExecutionDurationController.java
@@ -114,7 +114,7 @@ public class TAPExecutionDurationController implements InputParamController {
 		if (value instanceof Long)
 			duration = (Long)value;
 		else if (value instanceof Integer)
-			duration = (long)(Integer)value;
+			duration = (long)((Integer)value).intValue();
 		else if (value instanceof String){
 			try{
 				duration = Long.parseLong((String)value);
-- 
GitLab