Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359894 - [compiler] support @Override for static role methods
Summary: [compiler] support @Override for static role methods
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 2.0   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 348572 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-04 14:37 EDT by Stephan Herrmann CLA
Modified: 2012-09-22 16:04 EDT (History)
0 users

See Also:


Attachments
test and fix (2.33 KB, patch)
2011-10-04 17:36 EDT, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2011-10-04 14:37:57 EDT
Along implicit inheritance also abstract methods can be overridden,
yet an @Override annotation is marked as an error in this situation.
Shouldn't be.
Comment 1 Stephan Herrmann CLA 2011-10-04 17:36:25 EDT
Created attachment 204554 [details]
test and fix

Obviously static methods are excluded from all kinds of override tests.
For checking the @Override annotation I could work around.

I also checked about showing override indicators in the UI but for now
there seem to be just too many locations in OverrideIndicatorLabelDecorator
that assume static does not overrdie so that is not addressed by this fix.
Comment 2 Stephan Herrmann CLA 2011-10-04 17:43:51 EDT
Released for 2.1 M3 (r2039/40)
Comment 3 Stephan Herrmann CLA 2012-01-28 15:53:39 EST
*** Bug 348572 has been marked as a duplicate of this bug. ***
Comment 4 Stephan Herrmann CLA 2012-09-22 16:04:13 EDT
Verified using build 2.2.0.201209221349