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 96797 - method named the same as constructor can't be redefined on generalization
Summary: method named the same as constructor can't be redefined on generalization
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 16:17 UTC by Andrew Korostelev
Modified: 2007-06-20 13:40 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 Andrew Korostelev 2007-02-28 16:17:58 UTC
If user generalizes class that has method named the same as constructor, this
method will not be suggested in 'Select Methods to Redefine' dialog.

steps:
- create java-model uml project with class diagram
- put two classes on diagram.
- name them 'parent' and 'child'.
- add operation 'public void parent()' to parent class element
- add generalization link from child to parent.
'Select Methods to Redefine' dialog will not be even opened.

If there are another methods to redefine, dialog will be opened, but it will not
suggest 'public void parent()'.
Comment 1 Peter Lam 2007-03-20 23:11:32 UTC
low use case not currently impacting our installed user base.
Comment 2 George Vasick 2007-05-17 18:37:50 UTC
Planned for drawing area upgrade after NB 6.0.
Comment 3 George Vasick 2007-05-18 00:28:42 UTC
Should not use resolved/later status.
Comment 4 Yang Su 2007-06-04 20:39:42 UTC
Fixed a logic in determining constructor.
Comment 5 Andrew Korostelev 2007-06-20 13:40:18 UTC
verified in netbeans-hudson-trunk-970-full (Build 070620)

thefollowing new issues are filed:
issue 107427
issue 107428