Bug 445604

Summary: semicolon surprisingly disallowed
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: karsten.thoms, ldubox-coding101, sebastian.zarnekow, sven.efftinge
Version: 2.8.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 458918    

Description Moritz Eysholdt CLA 2014-10-01 04:31:39 EDT
The semicolon in 

class Foo {
	def String foo() {
		switch ("X") {
			case "Y": println("Z");
		}
	}
}


is surprisingly not allowed. Since Java allows one here, I think it should be allowed.
Comment 1 Sebastian Zarnekow CLA 2014-10-01 04:37:42 EDT
Semicolons are generally only allowed in block expressions. We could it allow in cases, too but it would break the XbaseGrammarAccess. If that is the only grammar change in 2.8, I'd say it's not worth it. If there are other changes, it would be safe to do this cosmetic change, too.
Comment 2 Sven Efftinge CLA 2015-02-02 03:38:59 EST
removed 2.8 schedule