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

Bug 355761

Summary: Errors in generated Java on ceiling and floor functions of mathLib when result is bigInt
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.language-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-08-24 16:28:26 EDT
Build Identifier: 20110824

myBigint bigInt;
myFloat float;
myBigint = mathLib.ceiling(myFloat);
myBigint = mathLib.floor(myFloat);

Gives errors in generated Java:
Type mismatch: cannot convert from Double to long	

Reproducible: Always

Steps to Reproduce:
1.See above.
2.
3.
Comment 1 broy2 CLA 2011-08-24 16:30:17 EDT
RBD:
mathLib.floor(numericVariable FLOAT in) returns (result BIGINT | FLOAT)
result 
The floor value of numericVariable. The return type is BIGINT in all target platforms other than Rich UI, where the return type is FLOAT.
Comment 2 Matt Heitz CLA 2011-08-25 14:53:47 EDT
Their return types should've been float.  I've updated them, and the generated code should compile now.
Comment 3 broy2 CLA 2011-08-29 10:48:56 EDT
20110828
Comment 4 broy2 CLA 2011-08-29 10:49:19 EDT
Verfied