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 87423

Summary: code generation doesn't update transformed element type in src
Product: uml Reporter: Andrew Korostelev <akorostelev>
Component: Code GenerationAssignee: Craig Conover <conover>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 87424    
Bug Blocks: 87400    

Description Andrew Korostelev 2006-10-18 15:41:59 UTC
code generation invoked for transformed element doesn't update element type in
java source file.

steps to reproduce:
- create java-platform uml project
- create class diagram
- put enumeration on diagram and name it
- generate code.
- transform enum. element on diagram into class
- generate code.

in source file element is still enum.
Comment 1 Andrew Korostelev 2006-10-18 15:48:23 UTC
While element type in source file is not changed, some midifications of
transformed diagram element will nevertheles be adde into source file.
Which may break source.
this case is faled as separate issue 87424
Comment 2 Craig Conover 2006-10-18 23:25:56 UTC
Now we delete the contents of the existing source file and regenerate code for
the current members of the element in the model.
Comment 3 Andrew Korostelev 2006-10-19 08:07:25 UTC
verified in all-nbms-griffin-061018_35
Some problems still exist, but they are not critical and will be filed as
separate issues.