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

Summary: Encapsulate fields should not add serialVersionUID when clicked in Select All
Product: java Reporter: ecerichter
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Screenshot of the window I'm talking about optimize

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