Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324079 - @nooverride does not work
Summary: @nooverride does not work
Status: CLOSED DUPLICATE of bug 315776
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 08:30 EDT by Dani Megert CLA
Modified: 2010-11-09 08:06 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2010-08-31 08:30:39 EDT
N20100829-2000 but probably also in 3.6.

0. check out 'org.eclipse.ui.ide' from HEAD
1. change bundle version of 'org.eclipse.ui.ide' to 3.7.0
2. open org.eclipse.ui.ide.OpenWithMenu
2. remove @noextend from class
3. add @nooverride to openEditor
4. save
   ==> run into bug 324076
5. now go to one of the subclasses of OpenWithMenu, e.g.
   org.eclipse.team.internal.ui.synchronize.SaveablesCompareEditorInput
   ==> BUG: it overrides openEditor but no warning/error is reported
Comment 1 Darin Wright CLA 2010-08-31 08:51:11 EDT
Is the subclass in the workspace as source or binary? (It has to be in source for the problem to appear). Does a full build make the problem appear?
Comment 2 Dani Megert CLA 2010-08-31 08:53:40 EDT
>Is the subclass in the workspace as source or binary? 
Source. Check out 'org.eclipse.team.ui' from HEAD.
Comment 3 Olivier Thomann CLA 2010-08-31 10:22:07 EDT
I'll take a look.
Comment 4 Olivier Thomann CLA 2010-10-06 13:54:08 EDT
I think this is a duplicate of bug 315776.
There is a problem to report api usage inside anonymous class.
Comment 5 Dani Megert CLA 2010-10-11 10:30:21 EDT
Steps in comment 0 are missing one step:
0.5 set API baseline to 3.6


Can this be targeted for 3.7?
Comment 6 Olivier Thomann CLA 2010-10-15 10:34:59 EDT
Closing as a duplicate of bug 315776.

*** This bug has been marked as a duplicate of bug 315776 ***
Comment 7 Dani Megert CLA 2010-11-09 08:06:38 EST
Verified that it works in N20101108-2000.