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.
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.
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?
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.
verified in all-nbms-griffin-061023