You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Philip May (JIRA)" <ji...@apache.org> on 2008/02/21 16:03:19 UTC

[jira] Created: (SANDBOX-212) [javaflow] Non-transient non-serializable instance field in serializable class (Stack)

[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.


[jira] Commented: (SANDBOX-212) [javaflow] Non-transient non-serializable instance field in serializable class (Stack)

Posted by "Torsten Curdt (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (SANDBOX-212) [javaflow] Non-transient non-serializable instance field in serializable class (Stack)

Posted by "Stefano Bagnara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SANDBOX-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630776#action_12630776 ] 

Stefano Bagnara commented on SANDBOX-212:
-----------------------------------------

Can you provide a test case for this issue?

> [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.


[jira] Closed: (SANDBOX-212) [javaflow] Non-transient non-serializable instance field in serializable class (Stack)

Posted by "Torsten Curdt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANDBOX-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Curdt closed SANDBOX-212.
---------------------------------

    Resolution: Fixed

please re-open if you have a better idea

> [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
>            Assignee: Torsten Curdt
>
> 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.