serialver should emit declaration with the 'private' modifier

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 1.4.2, 5.0, 6, 7, 8
    • Component/s: core-libs

        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.

              Assignee:
              Stuart Marks
              Reporter:
              Stuart Marks
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: