Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8026344

j.u.c.a *Adder and *Accumulator extend a package private class that is Serializable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None

      Description

      This bug is for part 2 of JDK-8026220 whose description is below:

      A serialized stream includes the ObjectStreamClass of the superclass if the superclass is Serializable. So I'm starting to conclude that we have two issues:

      1. A javadoc bug. Taking StringBuilder as an example then its superclass is the package-private AbstractStringBuilder (not Serializable) and there is no reference to this in the serialized stream. So I think javadoc needs to filter this out, as it does in the class view.

      2. A j.u.c. problem because *Adder and *Accumulator extend a package private class that is Serializable (because Striped64 extends Number). As a check, I've serialized a DoubleAccumulator instance and the bytes include a reference to Striped64.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                ssides Steve Sides
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: