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 87841

Summary: removed nested class is not removed from diagram
Product: uml Reporter: Andrew Korostelev <akorostelev>
Component: Reverse EngineeringAssignee: Yang Su <sherylsu>
Status: VERIFIED DUPLICATE    
Severity: blocker Keywords: RELNOTE
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 82727    
Bug Blocks:    

Description Andrew Korostelev 2006-10-24 12:37:06 UTC
User has java project with nested class and RE'ed uml project with class digram,
that shows outer and inner classes.
If user removes nested class from source and performs RE to the same uml
project, removed nested class is still shown on diagram.

workaround: close and reopen diagram. Nested class will disappear.

steps to reproduce:
- Create an empty Java project
- Add 'pack' package into the Java project
- Add 'OuterClass'  class under the package
  -----------------------------------------------------------
  package pack;

  public class OuterClass {
    class InnerClass{
    }
  }
  -----------------------------------------------------------
- Reverse Engineer the Java project into UML project
- Create a Class diagram
- Darg and Drop 'OuterClass' and 'OuterClass|InnerClass' on the
  diagram.
- Go to the Java project
- Remove InnerClass from source file
  -----------------------------------------------------------
  package pack;
  public class OuterClass {
  }
  -----------------------------------------------------------
- Reverse Engineer the Java project into the existing UML project
- Go to the Class diagram
BUG: 'InnerClass' and nested link to 'OuterClass' are still displayed.
 It is problem of diagram refreshing, because Inner class is removed from model.
Comment 1 Kris Richards 2006-12-18 22:11:23 UTC
The "InnerClass" class is no longer an element in the model, but it still appears on the diagram.
Comment 2 Peter Lam 2007-03-20 23:35:27 UTC
low use case not currently impacting our installed user base.
Comment 3 Yang Su 2007-07-17 23:38:52 UTC

*** This issue has been marked as a duplicate of 80569 ***
Comment 4 Peter Lam 2007-09-14 00:01:49 UTC
verified in build 20070913.