| Summary: | Errors in generated Java on: move "abc" to target for 3; | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mheitz |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I wrote the move statement generation thinking that the source move a move-for was always an array. Not right. Once we decide to support the move statement, we also need to have syntax for specifying the starting point of the move-for on the target, and also the source if it's an array too. *** This bug has been marked as a duplicate of bug 366738 *** *** This bug has been marked as a duplicate of bug 376638 *** |
program moveStmt type BasicProgram {} target string[] {"xyz"}; function main() target.resize(10); move "abc" to target for 3; end end String eze$Temp2 = "abc"; for ( int eze$Temp3 = (int)Math.min(Math.min(eze$Temp2.getSize(), target.getSize()),(short) 3); eze$Temp3 > 0; eze$Temp3-- ) { target.set(eze$Temp3 - 1, EString.ezeCast(eze$Temp2.get(eze$Temp3 - 1))); } The method getSize() is undefined for the type String moveStmt.java The method get(int) is undefined for the type String moveStmt.java