Hi Bing,

Add a "L" to the number, e.g. 

ts.add(new Long(1329640759372L));

Lars

On Feb 20, 2012, at 2:34 AM, Bing Li wrote:

> Dear all,
> 
> I am running the sample about TimeStampFilter as follows.
> 
>                List<Long> ts = new ArrayList<Long>();
>                ts.add(new Long(1329640759364));
>                ts.add(new Long(1329640759372));
>                ts.add(new Long(1329640759378));
>                Filter filter = new TimestampsFilter(ts);
> 
> When compiling the above code, the error is "type int out of range". But
> the time stamp is that long. How to handle this problem?
> 
> Thanks so much!
> 
> Best regards,
> Bing

Reply via email to