Bug 288623 - [clean up] Remove unsupported @Override annotation
Summary: [clean up] Remove unsupported @Override annotation
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2009-09-04 07:08 EDT by Markus Keller CLA
Modified: 2009-09-25 14:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2009-09-04 07:08:07 EDT
From news://news.eclipse.org:119/h7enfl$56m$2@build.eclipse.org :

> When source code has to be ported back to 1.5 from 1.6 (e.g. to be compatible 
> with OSx) then there is a lot of work in removing the @override annotations 
> for implemented interface methods. It would really help if there was a 
> preference setting to ignore those overrides.

We can't remove the errors in 1.5, since they are mandated by the Java Language Specification. But we could add a Clean Up on the "Unnecessary Code" page e.g. "Remove unsupported @Override".

I'm hesitant to just remove all @Override annotations that cause a compile error in batch, because some of these could be real errors. But we can offer to remove those that are supported in 1.6 but cause an error in 1.5, e.g.:

interface MyRunnable extends Runnable {
    @Override
    public void run();
}