Casting issue with management op over core
This commit is contained in:
parent
8f52a622d0
commit
9a6ae57d45
|
@ -195,7 +195,14 @@ public class QueueControlUsingCoreTest extends QueueControlTest
|
|||
*/
|
||||
public Long getFirstMessageAge() throws Exception
|
||||
{
|
||||
return (Long) proxy.invokeOperation("getFirstMessageAge");
|
||||
Object value = proxy.invokeOperation("getFirstMessageAge");
|
||||
|
||||
if (value instanceof Integer)
|
||||
{
|
||||
return ((Integer) value).longValue();
|
||||
}
|
||||
|
||||
return (Long) value;
|
||||
}
|
||||
|
||||
public String listMessageCounterHistoryAsHTML() throws Exception
|
||||
|
|
Loading…
Reference in New Issue