| Summary: | Java Compile error passing decimal reference variable into a number parameter | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | jeffdouglas, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
fixed Verfied with 201110210902 & closed |
This egl code produces java error function testFunctionParameterIn1() {@Test} toggleValue = 1; localDec decimal = 111.11; switchOnInParameter(localDec); end function switchOnInParameter(localLen number in) resolved int = -1; case(localLen) when(111.11) resolved = 1; when(222.22) resolved = 2; otherwise resolved = 3; end LogResult.assertTrue1(resolved == toggleValue); toggleValue = 0; end The method switchOnInParameter(ENumber) in the type GenericParameters is not applicable for the arguments (BigDecimal) However this compiles and executes as desired function testFunctionParameterIn2() {@Test} toggleValue = 1; localDec decimal(5,2) = 111.11; switchOnInParameter(localDec); end