Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358669 - Errors in generated Java on: move "abc" to target for 3;
Summary: Errors in generated Java on: move "abc" to target for 3;
Status: CLOSED DUPLICATE of bug 376638
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 17:31 EDT by broy2 CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description broy2 CLA 2011-09-22 17:31:27 EDT
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
Comment 1 Matt Heitz CLA 2011-09-22 21:31:58 EDT
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.
Comment 2 Matt Heitz CLA 2012-11-12 13:25:17 EST

*** This bug has been marked as a duplicate of bug 366738 ***
Comment 3 Matt Heitz CLA 2012-11-12 13:25:56 EST

*** This bug has been marked as a duplicate of bug 376638 ***