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 251197 - Constructor generation should ignore transient fields
Summary: Constructor generation should ignore transient fields
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-16 04:06 UTC by brettryan
Modified: 2015-03-16 09:33 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 brettryan 2015-03-16 04:06:52 UTC
It would be handy to have the constructor generator not include some fields when using this feature. One approach would be to have the generator ignore transient fields since they would not make sense to require them in a constructor for a deserialised object.

I propose that a third generator is added for where transient members are identified to exclude them.