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 87403 - Modified initial values/links/raised exceptions are not propagated to source
Summary: Modified initial values/links/raised exceptions are not propagated to source
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Craig Conover
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-10-18 13:50 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 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 Alexandr Scherbatiy 2006-10-18 13:50:13 UTC
Change 'private int a = 10' attribute to
'private int a = 20' on a class element and generate code.
The generated initial value is still '10' for the attribute.

Steps to reproduce:
- Create a Java-Platform Model UML project
- Add a package with scoped Class diagram
- Put a Class element on the diagram and name It
- Insert an operation to the element
- Add 'Exception' rised exception to the operation
- Generate code for the UML project
  Java file  is generated:
-------------------------------------------------------
  public class Test {
    public Test() {
    }

    public void op() throws Exception {
    }
  }
-------------------------------------------------------
- Change rised exception to 'IOException for the operation'
- Generate code for the UML project
 The operation still contains 'Exception' rised exception in the source code.
Comment 1 Alexandr Scherbatiy 2006-10-18 14:24:14 UTC
The issue with links:
- Put 'A' and 'B' classes on the diagram
- Generate code for the classes
- Draw 'Generalization' link from 'A' class element to 'B'
- Generate code for 'A' element
  Issue: 'extends B' string is not added to 'A' source file
  A.java1 backup file is created.

 Is it the same issue or it is better to separate the issues?
Comment 2 Craig Conover 2006-10-20 02:28:25 UTC
All this works because the GC action now clears all the existing source code and
regens it completely instead of just adding new stuff.

However, if the exception is not fully qualified, the import is not added
causing a compile error. New issue being added.
Comment 3 Andrew Korostelev 2006-10-23 15:27:28 UTC
verified in all-nbms-griffin-061023