Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364298 - [xtend][generator] Generate @Override annotations for overridden instance methods
Summary: [xtend][generator] Generate @Override annotations for overridden instance met...
Status: RESOLVED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: v2.12
Keywords:
: 365831 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-21 05:58 EST by Jan Koehnlein CLA
Modified: 2017-03-13 06:09 EDT (History)
4 users (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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