Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355761 - Errors in generated Java on ceiling and floor functions of mathLib when result is bigInt
Summary: Errors in generated Java on ceiling and floor functions of mathLib when resul...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 16:28 EDT by broy2 CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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