-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 1.4.2, 5.0, 6, 7, 8
-
Component/s: core-libs
-
b117
-
Not verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8028912 | port-stage-ppc-aix | Stuart Marks | P3 | Resolved | Fixed | master |
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.
- backported by
-
JDK-8028912 serialver should emit declaration with the 'private' modifier
-
- Resolved
-