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 227567 - Encapsulate fields should not add serialVersionUID when clicked in Select All
Summary: Encapsulate fields should not add serialVersionUID when clicked in Select All
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 23:08 UTC by ecerichter
Modified: 2013-03-16 23:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot of the window I'm talking about optimize (45.99 KB, image/png)
2013-03-16 23:40 UTC, ecerichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2013-03-16 23:08:36 UTC
Product Version = NetBeans IDE Dev (Build 201303142300)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01

When using Refactor -> Encapsulate fields, developer usually click in Select All.
In the event of the class having serialVersionUID defined, this should not be selected.
I've seen no case in more than 18 years of Java programming to create setter/getter for serialVersionUID.
Since this is a special attribute with special meaning and already have special treatment by IDE (like "Generate serialVersionUID..." actions), then this dialog should also be more precise.

Thanks,

Edson
Comment 1 ecerichter 2013-03-16 23:40:16 UTC
Created attachment 132695 [details]
Screenshot of the window I'm talking about optimize