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 176860

Summary: Generate Constructor doesn't offer fields with initial value.
Product: java Reporter: tprochazka <tprochazka>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description tprochazka 2009-11-15 09:22:36 UTC
For example when I have this class

class User {
  
  String name = "";
  String surname = "";
  Boolean active = true;

  public User() {
  }

}

and need to create constructor with name and surname, Netbeans generate again only empty constructor. Why?

Fields with initial value can be in separated group in filed selection window, but I think that should be possible use them in constructor generator.