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 109544 - Nested class does not show in the class diagram
Summary: Nested class does not show in the class diagram
Status: CLOSED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 17:55 UTC by Sherry Zhou
Modified: 2007-07-12 19:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sherry Zhou 2007-07-12 17:55:07 UTC
CB 20070711

1. Create a java class as below:
   public class OuterClass {
    
    public OuterClass () {
    }

    public static class InnerClass {
        public InnerClass () {
        }

    }
}  

2. Involve reverse engineer and create class diagram. 
-- the nested class InnerClass does not show in class diagram nor the project tree.
Comment 1 Trey Spiva 2007-07-12 18:28:28 UTC
There is not actually a nested link relationship.  The nested link is simply a graphical way to represent that fact that one model element owns a second model 
element.  In the project tree this relationship is represented by the fact that the nested element is physically shown under the owner.

How did you create the diagram?  I just created a class and a inner class.  I then selected both the outer class and the inner class in the project tree.  I then 
executed CDFS and I get a diagram with two class and a nested link between the classes.  I also tested this by first creating a diagram by RE.  It also worked.
Comment 2 Sherry Zhou 2007-07-12 19:32:18 UTC
The problem is gone if I save the java source before RE.