Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354545

Summary: Birt Sum the integer or decimal as string
Product: z_Archived Reporter: M P <mpatel>
Component: BIRTAssignee: Birt-ReportDesigner <Birt-ReportDesigner-inbox>
Status: RESOLVED WORKSFORME QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: bluesoldier, lchan
Version: 3.7.0   
Target Milestone: 4.4.0   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description M P CLA 2011-08-11 15:34:58 EDT
Birt Sum the integer or decimal as string When in 

Spring source tool => Report Design perspective.

When in script mode For

Report Design => initialize Method.

When i include below two package

importPackage(Packages.java.util);
importPackage(Packages.java.lang);

And when i do some of 2 decimal type of column from scripted data set It sum it as string on product string like 
"	131155299857549634373722897122083369204074743852453774316340430397393943541308401983224429713280922651126260240851979170188841415"

above insted of do SUM.
e.g
entry[0] += Number(imp);

When i use below expression. It work fine.

entry[0] += Number(imp).longValue();


Also with  e.g
entry[0] += Number(imp);

If i remove importPackage(Packages.java.lang); package then it's work fine.

So it's create problem when i include both package.
Comment 1 Xiaoying Gu CLA 2011-08-22 23:36:59 EDT
Hi,

would you please attached your report? I don't quite understand your problem. Thanks.
Comment 2 Linda Chan CLA 2014-02-28 20:34:49 EST
See #comment1.
If the issue still exists for you, please feel free to reopen the bug with more details on how to reproduce.