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

Bug 355758

Summary: Error in generated Java on mathLib.modf when var2 is defined int rather than bigint
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.javagen-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:07:03 EDT
Build Identifier: 20110824

myInt int;
myFloat float;
result float;
result = mathLib.modf(myFloat,myInt);

Gives Java error:
Cannot cast from AnyBoxedObject<Long> to int	


Reproducible: Always

Steps to Reproduce:
1.See above.
2.
3.
Comment 1 Matt Heitz CLA 2011-08-24 23:29:21 EDT
Ugh.  This is a problem with out parameters in general, not something specific to the modf function.
Comment 2 Matt Heitz CLA 2011-09-09 17:16:55 EDT
Fixed.  I made changes in CommonUtilities, MemberNameTemplate, and AnyValueTypeTemplate.  They now unbox the boxed value before using it.
Comment 3 broy2 CLA 2011-09-13 12:00:26 EDT
20110912