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

Summary: Applying pattern to existent participant do not overwrite methods
Product: uml Reporter: Sergey Petrov <sj-nb>
Component: Design CenterAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.