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

Bug 359894

Summary: [compiler] support @Override for static role methods
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
test and fix none

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