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 51653 - Abstract option should be disabled for Add constructor
Summary: Abstract option should be disabled for Add constructor
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-18 16:11 UTC by Roman Strobl
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Strobl 2004-11-18 16:11:14 UTC
[Netbeans 4.0 rc1; JDS v.2; JDK 1.4.2_06]

When you try to add a constructor in Projects tab
through Add->Constructor..., there is an option to
create abstract constructor. AFAIK creating an
abstract constructor always leads to an error, so
this option should be most probably disabled.
Comment 1 Roman Strobl 2004-11-18 16:14:55 UTC
When thinking it over, I have found out that most of the modifiers do
not actually make sense for constructors. It seems that this dialog
was taken from some other part of the IDE. Please reevaluate which
modifiers have sense for constructors, other should be removed.
Comment 2 Martin Matula 2004-11-18 19:20:24 UTC
Honzo, this is yours, I guess.
Comment 3 Jan Pokorsky 2005-02-09 10:07:57 UTC
The customizer is common to methods and constructors. In case of the
constructor also final, synchronized, native and static options have
to be disabled.

/cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/MethodCustomizer.java
new revision: 1.12; previous revision: 1.10
Comment 4 Roman Strobl 2005-02-21 13:01:39 UTC
Verified on 200502201900.