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 27051 - [Override Methods] should be able to override constructors too
Summary: [Override Methods] should be able to override constructors too
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 72253 72393 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-05 14:12 UTC by Eduardo Chana
Modified: 2013-09-06 14:56 UTC (History)
0 users

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 Eduardo Chana 2002-09-05 14:12:19 UTC
This is an enhancement to the "override 
methods" panel. It should be useful to include 
constructors too in this panel. This is useful 
when you extends a class and wants to imitate 
the constructors found in your parent class.

Best regards.
Comment 1 Jan Pokorsky 2006-02-08 13:04:24 UTC
*** Issue 72253 has been marked as a duplicate of this issue. ***
Comment 2 Jan Pokorsky 2006-02-08 13:06:30 UTC
*** Issue 72393 has been marked as a duplicate of this issue. ***
Comment 3 Jan Pokorsky 2006-02-08 13:54:08 UTC
We are evaluating this feature for the next release. I am just not sure the
override method window is the right place since you cannot *override* constructors.

IMO there should be an editor action or an editor hint allowing to generate new
constructor. It should offer you to choose class fields as parameters and to
delegate to constructor of the superclass if available.
Comment 4 tp 2006-03-12 06:55:47 UTC
Even if the "override methods" dialog is not the academically correct place for
this, it is the logical place. Users look for this feature from the "override
methods" dialog. Decision to not add constructors to "override methods" dialog
would be bad for usability.
Comment 5 Jiri Prox 2008-04-11 00:54:03 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 Dusan Balek 2013-09-06 14:56:14 UTC
Generating constructors is possible via Inset Code action now.