| Summary: | Numeric literal in if condition 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, jqian |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Paul's change on friday broke this. He's working on it. Paul's fixed it. It will be in the next build. works in 20110919052 Closing this defect. |
program driver type BasicProgram {} function main() passed int = 9; if (passed > 0) syslib.writeStdout("some passed "); else syslib.writestdout("none passed"); end end end ========== The operator > is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal ============== if ((EInt.asNumber(EInt.ezeBox(passed)) > org.eclipse.edt.runtime.java.egl.lang.ESmallint.asNumber(org.eclipse.edt.runtime.java.egl.lang.ESmallint.ezeBox((short) 0)))) {