| Summary: | boxing happening when it should not, and not when it should | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jeff Douglas <jeffdouglas> |
| Component: | EDT | Assignee: | Huang Ji Yong <hjiyong> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P1 | CC: | broy2, carrollk, jqian, mayunf, pharmon, svihovec, tww |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Jeff Douglas
*** Bug 359745 has been marked as a duplicate of this bug. *** I looked into the first problem and was able to check in a fix in IRUtils to remove the excess boxing when converting value types to the Reference types of Number, Decimal and Timestamp. However: I am routing this defect back to javaGen because of the second problem (Mathlib.decimals() not working). We CANNOT do a box for operations that involve things like Decimal(10,3) to Decimal. The reason for this is that references to the Decimal (reference) type is generated as BigDecimal, not EDecimal. If makeExprCompatibleWithType made a boxing expression for this, it would break javaGen (and probably JS gen). Since things are working with Decimal in other regards, I think the generators will need to have special code to box the argument to the Mathlib.decimals() function. Assuming you do add special code to java gen to handle this system function, please route the bug to JS gen when complete so that a similar change can be made to that generator I've implemented code in reorg code to check for mathlib.decimals and mathlib.precision to box the argument if of type decimal, so that the values are preserved. Routing this to JSgen, to determine if they wish this same logic activated. fixed already ok |