Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357573 - goto statement is not supported and should cause validation error
Summary: goto statement is not supported and should cause validation error
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 358751 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-13 18:36 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-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.