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 87399 - accessors are not generated for attributes after code was generated for class
Summary: accessors are not generated for attributes after code was generated for class
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:12 UTC by Andrew Korostelev
Modified: 2006-10-20 08:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalStateException from the JavaModel after Gen Code (1.34 KB, application/octet-stream)
2006-10-19 05:22 UTC, Craig Conover
Details
Bad source code after code gen causing IllegalStateException (797 bytes, application/octet-stream)
2006-10-19 05:26 UTC, Craig Conover
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2006-10-18 13:12:38 UTC
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.
Comment 1 Craig Conover 2006-10-19 05:22:39 UTC
Created attachment 35364 [details]
IllegalStateException from the JavaModel after Gen Code
Comment 2 Craig Conover 2006-10-19 05:26:58 UTC
Created attachment 35365 [details]
Bad source code after code gen causing IllegalStateException
Comment 3 Andrew Korostelev 2006-10-19 08:16:21 UTC
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)."
Comment 4 Andrew Korostelev 2006-10-19 08:16:45 UTC
verified in all-nbms-griffin-061018_35.
Comment 5 Andrew Korostelev 2006-10-19 16:33:04 UTC
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.
Comment 6 Craig Conover 2006-10-19 19:53:41 UTC
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.

Comment 7 Craig Conover 2006-10-20 01:14:33 UTC
After Gen Code, the getters/setters are generated and the redefine ops dialog is
shown as expected.
Comment 8 Andrew Korostelev 2006-10-20 08:37:18 UTC
verified in all-nbms-griffin-061019_8