Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-212

[javaflow] Non-transient non-serializable instance field in serializable class (Stack)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Javaflow
    • Labels:
      None

      Description

      The class Stack is serializable but has a non-transient non-serializable instance field.
      The field is this:
      protected Runnable runnable;

      This Serializable class defines a non-primitive instance field which is neither transient, Serializable, or java.lang.Object, and does not appear to implement the Externalizable interface or the readObject() and writeObject() methods. Objects of this class will not be deserialized correctly if a non-Serializable object is stored in this field.

        Attachments

          Activity

            People

            • Assignee:
              tcurdt Torsten Curdt
              Reporter:
              pmay Philip May
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: