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

Bug 355769

Summary: Error in generated Java on mathLib.round when powOf10 is decimal
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Matt Heitz <mheitz>
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 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