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 103985 - Applying pattern to existent participant do not overwrite methods
Summary: Applying pattern to existent participant do not overwrite methods
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Design Center (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 14:46 UTC by Sergey Petrov
Modified: 2009-05-25 21:06 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 Sergey Petrov 2007-05-15 14:46:10 UTC
Applying pattern to existent participant do not overwrite methods with the same
name and parameters

steps:
0. create Java Platform UMl project
1. create class diagram
2. add class and name
3. add operation 'public int createMemento()' to the class
4. invoke Apply Design pattern on the class
5. select GoF|Behavioral::Memento, next, any namespace, next
6. select class from step 2 as Originator and press next, next, finish
Dialog about possible overwriting appears
7. press Yes
now initial class have two methods with the same signature except return type
Comment 1 Peter Lam 2008-06-11 19:57:51 UTC
still exists in 6.5 but might not be a common use case.