Details
-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2, 5.0, 6, 7, 8
-
b117
-
Not verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8028912 | port-stage-ppc-aix | Stuart Marks | P3 | Resolved | Fixed | master |
Description
The serialver tool computes a the serialVersionUID for a serializable class and emits a line of code suitable for pasting into a source file. For example, "serialver java.lang.String" emits:
java.lang.String: static final long serialVersionUID = -6849794470754667710L;
Unfortunately this does not follow the recommendation in the java.io.Serializable class doc, which "strongly advises" the field be declared private.
java.lang.String: static final long serialVersionUID = -6849794470754667710L;
Unfortunately this does not follow the recommendation in the java.io.Serializable class doc, which "strongly advises" the field be declared private.
Attachments
Issue Links
- backported by
-
JDK-8028912 serialver should emit declaration with the 'private' modifier
- Resolved