| Summary: | Passing integer literal as a function parameter produces invalid java | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | jeffdouglas |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
fixed Verified with development code Closing this defect. |
===== EGL Code =========== program driver type BasicProgram {} function main() writeResultSummary(3); end function writeResultSummary(expectedTestCnt int in) syslib.writestdout(expectedTestCnt); end end ======== Java code ========== public void main() { int eze$Temp1 = null; eze$Temp1 = (int)((short) 3); writeResultSummary(eze$Temp1); } =========== Java Error ========== Type mismatch: cannot convert from null to int