Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357573

Summary: goto statement is not supported and should cause validation error
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-09-13 18:36:13 EDT
Build Identifier: 20110912

Get error in generated Java because goto statement is not supported.

program gotoPgm type BasicProgram {}
	x int;	
	function main()
		goto getout;
		x = x + 1;
		getout:
		syslib.writeStdout(x);
	end	
end

Reproducible: Always
Comment 1 Paul Harmon CLA 2011-10-26 17:44:22 EDT
Validation has been added
Comment 2 Paul Harmon CLA 2011-11-01 10:41:18 EDT
*** Bug 358751 has been marked as a duplicate of this bug. ***
Comment 3 broy2 CLA 2011-11-02 09:57:35 EDT
Verified in 20111102 build.