Community
Participate
Working Groups
I tried to subclass the type "org.eclipse.xtext.ui.editor.templates.DefaultTemplateProposalProvider.FollowElementAcceptor" which is defined as an inner, non-static class using Xtend, like this: class CustomFollowElementAcceptor extends FollowElementAcceptor { new(Collection<TemplateContextType> result) { super(result) } } Xtend does not show me any problems, though the generated Java file does trying to call the super-constructor (since its actually wrong to do this): "No enclosing instance of type DefaultTemplateProposalProvider is available due to some intermediate constructor invocation"
We should add a validation rule, as long as we don't support inner classes.
*** Bug 435026 has been marked as a duplicate of this bug. ***
Unfortunately out of scope for 2.8 - since we propagate Java errors to Xtend, it's not a big issue wrt to the missing validation.