You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2019/10/08 11:13:00 UTC

[jira] [Commented] (IGNITE-8293) BinaryUtils#isCustomJavaSerialization fails when only readObject is declared in a class

    [ https://issues.apache.org/jira/browse/IGNITE-8293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16946720#comment-16946720 ] 

Maxim Muzafarov commented on IGNITE-8293:
-----------------------------------------

Moved to 2.9 due to inactivity. Please feel free to move back if you will be able to complete the ticket by AI 2.8 code freeze date, December 2, 2019.

> BinaryUtils#isCustomJavaSerialization fails when only readObject is declared in a class
> ---------------------------------------------------------------------------------------
>
>                 Key: IGNITE-8293
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8293
>             Project: Ignite
>          Issue Type: Bug
>          Components: binary
>    Affects Versions: 2.4
>            Reporter: MihkelJ
>            Assignee: MihkelJ
>            Priority: Minor
>             Fix For: 2.8
>
>
> Consider this class:
>  
> {code:java}
> public class Test implements Serializable {
>     private transient AtomicBoolean dirty = new AtomicBoolean(false);
>     private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
>         dirty = new AtomicBoolean(false);
>     }
>     //methods to check and mark class as dirty
> }{code}
> {{isCustomJavaSerialization}} will get a {{NoSuchMethodException}} when trying to grab the {{writeObject}} method and falsely conclude that Test doesn't use custom serialization.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)