"Resource Validation Problem:int literal "1315690842829" out of range" issued while assigning value 1315690842829 to long data type.

"Resource Validation Problem:int literal "1315690842829" out of range" issued while assigning value 1315690842829 to long data type.

book

Article ID: KB0094427

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
==========
The following error is reported when assigning the value 1315690842829 to long data type:

  long ts = 1315690842829;

Error Description    Resource    Path    Location    Type
int literal "1315690842829" out of range    startup.rulefunction    TS/RuleFunctions    line 12    Resource Validation Problem

Environment:
===========
TIBCO BusinessEvents 4.0.x

Symptoms:
==========
Validation error on long value in studio, when assign long value:

  long ts = 1315690842829;

Resolution:
=========
Long literals should be specified with L/l: 123L or 123l. Appending L to the number resolves the issue.

long ts = 1315690842829L;

Issue/Introduction

"Resource Validation Problem:int literal "1315690842829" out of range" issued while assigning value 1315690842829 to long data type.