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 - Generate Constructor doesn't offer fields with initial value.
Summary: Generate Constructor doesn't offer fields with initial value.
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-15 09:22 UTC by tprochazka
Modified: 2010-01-11 02:12 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.