Bug 130146 - creating new 1.4 class erroneously adds @Override
Summary: creating new 1.4 class erroneously adds @Override
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-03-02 11:34 EST by Tom Tromey CLA
Modified: 2009-08-30 02:05 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 Tom Tromey CLA 2006-03-02 11:34:41 EST
I have a project (GNU Classpath) that has some project-local settings.
In particular it sets the compiler compliance level to 1.4, since the
trunk of Classpath is all 1.4 code.

I added a new class using the wizard.  The new class inherited some abstract
methods, and I asked the wizard to create concrete implementations for
me.

Each new method was annotated with "@Override" -- yielding a compiler
error for each method, as @Override is not supported in 1.4.

I realize there is a separate "use @Override" setting in the project
properties.  However, it seems strange to me to follow this setting
for a 1.4 project.
Comment 1 Jerome Lanneluc CLA 2006-03-02 11:40:07 EST
Moving to JDT UI
Comment 2 Martin Aeschlimann CLA 2006-03-03 04:53:07 EST
I can't reproduce that in 3.2 I20060301. Maybe it ahs been fixed, but I'm not aware of such a bug. Looking at the code, we alwasy check if the current project has source conpatibility >= 1.5
Comment 3 Martin Aeschlimann CLA 2006-03-03 13:36:18 EST
I need reproducible steps. I tried it myself and also check the code and can't find an explanation.
Comment 4 Denis Roy CLA 2009-08-30 02:05:53 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.