This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 55714 - [41cat] @Override not created for overrided method
Summary: [41cat] @Override not created for overrided method
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 3 votes (vote)
Assignee: issues@java
URL:
Keywords:
: 58916 91716 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-01 16:53 UTC by vbrabant
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vbrabant 2005-03-01 16:53:39 UTC
[ BUILD # : 200502222100 ]
[ JDK VERSION : 1.5.0 ]

I create a new project for a JDK [1.]5
environment. The source level is well 1.5.
I create simple java class (MyFirstClass).
I select Tools | Override Methods and choose the
toString method in the list of proposed methods
and click on ok.
The method is generated, icon appaers well in the
left margin to indicate that it override the
method of the Object class.

But the @Override annotation has not been created.

It would be nicer if NetBeans could add that
annotation in that context. NetBeans can guess it
because source level is well 1.5 and version of
the project's related JDK version [1.]5.

Vincent
Comment 1 Martin Matula 2005-03-01 16:55:58 UTC
This is an enhancement request rather than a bug.
Comment 2 vbrabant 2005-03-28 09:56:39 UTC
It concerns all OS and All Platform. So, I changed those elements to ALL.
What's promo-F ? 4.2 ?
Comment 3 Tomas Hurka 2005-07-29 17:10:59 UTC
*** Issue 58916 has been marked as a duplicate of this issue. ***
Comment 4 felipeal 2006-03-08 01:41:51 UTC
I've faced a similar problem generating an overriden method using
code-completion (for instance, typing 'toStr', TAB and selection 'Override
toString()'....
Comment 5 bass 2007-07-13 19:11:36 UTC
The required functionality is also missing when implementing an interface method and source code level is 1.6.


I think bug #91716 is a duplicate of this one.

Folks, could you please resolve that one as a RESOLVED DUPLICATE?
Comment 6 Jiri Prox 2007-07-16 09:12:38 UTC
*** Issue 91716 has been marked as a duplicate of this issue. ***
Comment 7 Pavel Flaska 2007-07-16 15:34:27 UTC
Works in current trunk build.