Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355769 - Error in generated Java on mathLib.round when powOf10 is decimal
Summary: Error in generated Java on mathLib.round when powOf10 is decimal
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: Matt Heitz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 17:46 EDT by broy2 CLA
Modified: 2017-02-23 14:14 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 17:46:04 EDT
Build Identifier: 20110824

result = mathLib.round(myFloat, myDecimal);	
balance = mathLib.round(mySmallFloat, myDecimal);
d = mathLib.round(myDecimal, myDecimal);

Give errors in generated Java:
The method round(BigDecimal, Integer) in the type MathLib is not applicable for the arguments (BigDecimal, BigDecimal)	
The method round(BigDecimal, Integer) in the type MathLib is not applicable for the arguments (double, BigDecimal)	
The method round(BigDecimal, Integer) in the type MathLib is not applicable for the arguments (float, BigDecimal)	

Reproducible: Always
Comment 1 Matt Heitz CLA 2011-08-25 14:52:55 EDT
Those versions of the round function were a mistake.  I removed them.  Now we only have round functions whose second parameter is an int.
Comment 2 broy2 CLA 2011-08-29 10:46:24 EDT
20110828
Comment 3 broy2 CLA 2011-08-29 10:46:37 EDT
Verified