Community
Participate
Working Groups
Build Identifier: 20110916-0149 If I declare an injected extension as protected or public, it is still not available to subclasses. It would be useful if extensions could be made available to subclasses. Otherwise having visibility modifiers for injected extensions don't make sense. Reproducible: Always Steps to Reproduce: 1. Create an Xtend class with a protected/public injected extension 2. Create another Xtend class which subclasses the first 3. Note that the protected/public extension in the superclass is not visible in the subclass
We would have to use Java annotations to mark fields in the generated Java code as extension fields.
@Extension annotation has been introduced in 2.4.1
Requested via bug 522520. -M.