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 90187 - Body is not generated for nested class in some cases
Summary: Body is not generated for nested class in some cases
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:
Depends on:
Blocks:
 
Reported: 2006-11-28 14:15 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Initial 'ListClass' java class (1.05 KB, text/plain)
2006-11-28 14:19 UTC, Alexandr Scherbatiy
Details
Generated 'ListClass' java class. Nested 'Node' class lost some attributes and operations. (393 bytes, text/plain)
2006-11-28 14:22 UTC, Alexandr Scherbatiy
Details
new generated ListClass.java (604 bytes, text/plain)
2006-11-30 22:50 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-11-28 14:15:49 UTC
Steps to reproduce:

- Reverse engineer the attached ListClass java class into UML project
- Generate code for the UML project
- Go to the generated ListClass  source code 
  Some attributes and operations are lost. See attached generated java class.
Comment 1 Alexandr Scherbatiy 2006-11-28 14:19:47 UTC
Created attachment 36318 [details]
Initial 'ListClass' java class
Comment 2 Alexandr Scherbatiy 2006-11-28 14:22:45 UTC
Created attachment 36319 [details]
Generated  'ListClass' java class. Nested 'Node' class lost some attributes and operations.
Comment 3 Craig Conover 2006-11-30 21:43:56 UTC
I was able to reproduce a week ago, but working for me now. I believe some fixes
I integrated this week for some other issues fixed this issue as well.
Comment 4 Peter Lam 2006-11-30 22:48:44 UTC
verified in build 061130_7 that the body is no longer empty. the issue might
have been fixed by other fixes. However, the reversed engineered model does not
show the attribute "head" in the "ListClass" but it's there in the generated
code. Attribute "next" in the nexted class "Node" is also missing from the
reversed engineered model so generated code does not have this attribute. See
attached generated code. Will file a different issue for the reverse engineering
issue for the missing attributes.
Comment 5 Peter Lam 2006-11-30 22:50:00 UTC
Created attachment 36405 [details]
new generated ListClass.java
Comment 6 Alexandr Scherbatiy 2006-12-01 11:29:07 UTC
> Attribute "next" in the nexted class "Node" is also missing from the
> reversed engineered model so generated code does not have this attribute.

It is a known problem.
See issue 87514 Drawing Navigable Aggregation link from element to self is not
propagated to source