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 90396 - missing attributes in reverse engineered model
Summary: missing attributes in reverse engineered model
Status: CLOSED INVALID
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 5.x
Hardware: All Solaris
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-30 23:15 UTC by Peter Lam
Modified: 2006-11-30 23:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
original ListClass.java (1.05 KB, text/plain)
2006-11-30 23:16 UTC, Peter Lam
Details
generated ListClass.java (604 bytes, text/plain)
2006-11-30 23:18 UTC, Peter Lam
Details
reverse engineered model with missing attributes (105.90 KB, image/jpeg)
2006-11-30 23:20 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2006-11-30 23:15:55 UTC
in build 061130_7

The reversed engineered model from the attached ListClass.java does not
show the attribute "head" in the "ListClass" but it's there in the generated
code. Attribute "next" in the nested class "Node" is also missing from the
reversed engineered model so generated code does not have this attribute. See
attached generated code and attached snapshot of reverse engineered model tree.

Repro steps:
- create a java project for the attached ListClass.java file
- reverse engineer the java project containing ListClass.java file
- expand the ListClass and Node class nodes from the reverse engineered model tree
Result: 
1. "head" attribute is missing from the ListClass node
2. "next" attribute is missing from the nested class Node node
3. visibility of attribute "element" from the nested class Node is "package"
where it should be "private"
Comment 1 Peter Lam 2006-11-30 23:16:51 UTC
Created attachment 36406 [details]
original ListClass.java
Comment 2 Peter Lam 2006-11-30 23:18:05 UTC
Created attachment 36407 [details]
generated ListClass.java
Comment 3 Peter Lam 2006-11-30 23:20:17 UTC
Created attachment 36408 [details]
reverse engineered model with missing attributes
Comment 4 Peter Lam 2006-11-30 23:29:05 UTC
More issues: all operations in the nested class "Node" have visibility as
"package", they should be "private" instead.
Comment 5 Peter Lam 2006-11-30 23:51:16 UTC
ops, I missed the relationships nodes that is used for mapping attributes of
type objects. after confirming with development, this is the way things are
mapped as well as the no visibility are mapped to packages. so, this bug is invalid.