Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355758 - Error in generated Java on mathLib.modf when var2 is defined int rather than bigint
Summary: Error in generated Java on mathLib.modf when var2 is defined int rather than ...
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:07 EDT by broy2 CLA
Modified: 2017-02-23 14:20 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: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