Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362830 - Decimal value isn't correctly converted to string when passed thru decimal parameter then any parameter
Summary: Decimal value isn't correctly converted to string when passed thru decimal pa...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-03 14:34 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (show)

See Also:


Attachments
Eunit file (1.67 KB, application/octet-stream)
2011-11-03 14:34 EDT, Kathy Carroll CLA
no flags Details
fix (1.98 KB, patch)
2011-11-04 03:41 EDT, Huang Ji Yong CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-11-03 14:34:27 EDT
Created attachment 206426 [details]
Eunit file

Decimal always gets converted to an empty string.

decimal values are sent into a function with decimal parameter types which in turn are passed to a function with parameters declared as any.  The last function needs to convert these decimals to a string and it always results in an empty string.

I've attached the an EUNIT testcase that isn't part of the test project because you need to do a visual to make sure the report is being created correctly.  myAssertDecimalEqualBad doesn't work as desired.
Comment 1 Huang Ji Yong CLA 2011-11-04 03:41:05 EDT
Created attachment 206447 [details]
fix
Comment 2 Huang Ji Yong CLA 2011-11-04 03:43:49 EDT
Change to make the boxing for the function parameter of decimal type to be done in runtime.
Comment 3 Kathy Carroll CLA 2011-11-07 06:59:30 EST
Verified with 201111062101 and closed