| Summary: | Xtend2 class overriding a void method generates error | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Esa Ryhänen <erules> |
| Component: | Xtext | Assignee: | Jan Koehnlein <jan> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, tmf.xtext-inbox |
| Version: | 2.0.0 | Flags: | jan:
indigo+
|
| Target Milestone: | M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Fix 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: I20100608-0911 Overriding a void method defined in a supertype in a Xtend2 class produces a type error on the return type. Reproducible: Always Steps to Reproduce: 1. Create a Java class: package pkg; public class ExtendedClass { void meth() {} } 2. Create a Xend2 class: package pkg class MyClass extends ExtendedClass { override void meth() {} } 3. The void return type in the xtend file is error marked with message "The return type is incompatible with void pkg.ExtendedClass.meth()".