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 84011

Summary: Source for inner class generated in two ways depens on nested class creation way
Product: uml Reporter: bugbridge <bugbridge>
Component: SynchronizationAssignee: issues@uml <issues>
Status: RESOLVED INVALID    
Severity: blocker CC: sj-nb
Priority: P4    
Version: 5.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description bugbridge 2006-09-01 12:59:52 UTC
Original submitter: sergeyp

Description:

there is static modificator for inner class when created with drawing of nested
link on diagram, but there is no static modificator when creats inner class with
'Add|Element\ on class node.

Steps to reproduce:
- Create Package with scoped Class diagram
- Put Class element on the diagran and name it 'A'
- Select the 'A' class element in Model tree and invoke
  'Add|Diagram' from popup menu
- Select Class diagram and press 'OK' button
- Put a Class element on the created diagram and name it 'B'
- Go to source of 'A' class
  Inner 'B' class does not have static modifier:
  -----------------------------------------------------------
  package pack;

  public class A {
    public A() {
    }

    public class B {
        public B() {
        }
    }

  }
  -----------------------------------------------------------
Comment 1 Sergey Petrov 2008-11-19 15:43:03 UTC
both cases in 6.5(6.1?) generate nested class without static.