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 252990 - Constant name does not follow naming conventions: serialVersionUID
Summary: Constant name does not follow naming conventions: serialVersionUID
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 255403 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-15 04:34 UTC by _ gtzabari
Modified: 2015-09-21 14:37 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2015-06-15 04:34:14 UTC
Product Version: NetBeans IDE Dev (Build 201506110001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

The "Constant name does not follow naming conventions" hint should not ask users to rename serialVersionUID because, although it is a constant, its name may not be changed.
Comment 1 cezariusz 2015-07-14 20:02:56 UTC
In my opinion it's a bug, not an enhancement.
Comment 2 lvaills 2015-08-18 12:44:14 UTC
(In reply to cezariusz from comment #1)
> In my opinion it's a bug, not an enhancement.

I share your opinion. If I follow the Netbeans advice and choose to rename it, then I brake the serialization.
Comment 3 _ gtzabari 2015-08-18 15:17:13 UTC
lvaills,

I think you meant to change the issue type to DEFECT, not TASK, so I changed it for you.
Comment 4 Svata Dedic 2015-08-26 14:14:40 UTC
Fixed in jet-main#00f6e3028462 -- I've excluded serialVersionUID and serialPersistentFields from the serialization spec.
Comment 5 Quality Engineering 2015-09-02 05:16:45 UTC
Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/00f6e3028462
User: Svata Dedic <sdedic@netbeans.org>
Log: #252990: serialization constants excluded from name check
Comment 6 Svata Dedic 2015-09-21 14:37:20 UTC
*** Bug 255403 has been marked as a duplicate of this bug. ***