Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364298

Summary: [xtend][generator] Generate @Override annotations for overridden instance methods
Product: [Tools] Xtend Reporter: Jan Koehnlein <jan>
Component: BacklogAssignee: Project Inbox <xtend-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: btickets, christian.dietrich.opensource, eclipse, sven.efftinge
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://github.com/eclipse/xtext-xtend/pull/175
Whiteboard: v2.12

Description Jan Koehnlein CLA 2011-11-21 05:58:58 EST
For non-static JvmOperations we should generarte override annotations.
For static operations, Java forbidds that.
Comment 1 Sven Efftinge CLA 2012-01-31 06:03:11 EST
We should also disallow usage of the @Override annotation in Xtend methods.
Comment 2 Christian Dietrich CLA 2016-08-12 04:00:15 EDT
the first part of this is working,
but you can still add @Override on xtend methods. even on ones that dont override anything (there is no validation for that)
Comment 3 Christian Dietrich CLA 2017-03-13 04:35:10 EDT
*** Bug 365831 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2017-03-13 04:38:05 EDT
GitHub Pull Request 175 created by [cdietrich]
https://github.com/eclipse/xtext-xtend/pull/175
Comment 5 Christian Dietrich CLA 2017-03-13 04:54:23 EDT
Will add 

- Warning if the is @Override on method that does have override keyword
- Error if there is @Overide on method that does not override (gives java compile error now)
Comment 6 Christian Dietrich CLA 2017-03-13 06:09:53 EDT
fixed in 2.12