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.
After user has invoked code generation for class, accessors are not generated for it's attributes. steps to reproduce: - create java-platform uml project - add class diagram - put class on diagram and name it. - add named attribute to class - accessors will be generated. - invoke 'generate code' from popup menu of class element on diagram. - add new attribute for class BUG: after code generation accessors will not be created for this class.
Created attachment 35364 [details] IllegalStateException from the JavaModel after Gen Code
Created attachment 35365 [details] Bad source code after code gen causing IllegalStateException
checked in all-nbms-griffin-061018_35. is not reproducible after fixing of issue 87423. conover's comment from issue 87423: "We are deleting the contents of the current source file and regenerating all existing members of the element (literals, attr, ops, etc)."
verified in all-nbms-griffin-061018_35.
can't understand why did it work for me in in all-nbms-griffin-061018_35. Now it is reproducible in 061018_35 and 061018_36.
Another side effect that has the same root cause here is that when a class element is set to generalize another class element, the Redefine Operations dialog is not displayed. Cindy reported this from and experience in a tutorial.
After Gen Code, the getters/setters are generated and the redefine ops dialog is shown as expected.
verified in all-nbms-griffin-061019_8