| Summary: | [xtend] Cannot add dispatch case and throw plain runtime exception | ||
|---|---|---|---|
| Product: | [Tools] Xtend | Reporter: | Sebastian Zarnekow <sebastian.zarnekow> |
| Component: | Core | Assignee: | Project Inbox <xtend-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dennis.huebner, sven.efftinge |
| Version: | 2.2.0 | Flags: | sven.efftinge:
kepler+
|
| Target Milestone: | M6 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
| Bug Depends on: | 376037 | ||
| Bug Blocks: | |||
*** Bug 361780 has been marked as a duplicate of this bug. *** Works like a charm with the new TS Requested via bug 522520. -M. |
Try to implement a custom type provider with xtend: def dispatch type(XBinaryOperation bo, JvmTypeReference r, boolean b) { throw new RuntimeException("This is expected") } leads to the following error: Incompatible return type of dispatch method. Expected org.eclipse.xtext.common.types.JvmTypeReference but was void