| Summary: | [xtend] Compilation of Xtend file aborted due to internal error | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Karsten Thoms <karsten.thoms> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Karsten Thoms
Hi Karsten, the exception is only logged and the method #getSupertype handles this case gracefully. Could you please provide some more information on the Xtend-file in question? It was an error in our Xtend class, where we have a recursive call
def getDefaultValue(SuperType elem) {
switch (elem) {
SubType: elem.defaultValue
default : ""
}
}
When removing this function the class is compiled. But we do not get an error marker here. In this situation the code would cause a StackOverflow if it would be invoked.
Looks like a duplicate of bug 342173. Please reopen if the file does not compile even if you specify the return type of the recursive function. *** This bug has been marked as a duplicate of bug 342173 *** |