[
https://issues.apache.org/jira/browse/SANDBOX-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635835#action_12635835
]
Torsten Curdt commented on SANDBOX-212:
---------------------------------------
This is related to SANDBOX-213
If the runnable is serializable we want it to be serialized (so it cannot be
transient).
If the runnable is not serializable and you try to serialize is an error is
acceptable behavior. This is information is not available at runtime.
Do you have a better solution?
> [javaflow] Non-transient non-serializable instance field in serializable
> class (Stack)
> --------------------------------------------------------------------------------------
>
> Key: SANDBOX-212
> URL: https://issues.apache.org/jira/browse/SANDBOX-212
> Project: Commons Sandbox
> Issue Type: Bug
> Components: Javaflow
> Reporter: Philip May
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.