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 78767

Summary: All parameter/attribute types replaced with int after promote design pattern
Product: uml Reporter: bugbridge <bugbridge>
Component: SynchronizationAssignee: Kris Richards <krichard>
Status: VERIFIED FIXED    
Severity: blocker CC: sj-nb
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description bugbridge 2006-06-21 13:00:31 UTC
steps to reproduce:
0. create project in design center
1. create class diagram
2. add pattern to the diagram
3. bind class role with the pattern
4. add operation 'public void op( Vector par)' to the class
5. propagate pattern to design center
6. check operation in design center
Vector is replaced with int

The same for attributes, try to add private String log attribute to class role
And for return types, add operation with String return type, check types after
propagation, return type is replaced with void, attribute type is replaced with int.

reproducible with coke060619
Comment 1 Kris Richards 2006-10-12 22:15:02 UTC
cloning was not working properly. Needed to resolve/create new data types.

there is a followup problem; dependecies do not seem to be cloned during an apply of a design pattern.
Comment 2 Sergey Petrov 2006-10-16 16:00:48 UTC
verified with 061015