| Summary: | [Xtend2.2] While loop with try/catch and rethrow produces illegall Java code. | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Ingo Meyer <ingo.meyer> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | unspecified | Flags: | sven.efftinge:
juno+
|
| Target Milestone: | M4 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
pushed to master Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: A while loop where its expression always returns and not loops will produce illegal code. In my language I introduced the "break" and "continue" keywords together with a endless loop "while (true) ...", but my example works in any Xtend file. Reproducible: Always Steps to Reproduce: 1. use snippet: def void whileLoopTest () { var s = 'Test' while (true) try { s = s + ' failed' return } catch (Exception ex) { throw ex } }