ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Do (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-5444) Collections.singletonList is not properly serialized by binary marshaller
Date Fri, 23 Jun 2017 22:16:00 GMT

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

William Do commented on IGNITE-5444:

I believe the issue is to do with the serialized form, which in this case the desired outcome
is to be stored as a {{SingletonList}} of binary objects.

The same issue also occurs for {{Collections.unmodifiableList}}. I think ideally we want to
add these types to both {{BinaryUtils.knownCollection}} and {{BinaryUtils.isSpecialCollection}}.
The latter is the one being used to identify serialization of collection types.

However both of these are private static classes within {{Collections}} and I am not quite
sure how to proceed yet.

> Collections.singletonList is not properly serialized by binary marshaller
> -------------------------------------------------------------------------
>                 Key: IGNITE-5444
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5444
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.0
>            Reporter: Valentin Kulichenko
>            Assignee: William Do
>             Fix For: 2.1
>         Attachments: BinaryObjectSingletonList.java
> Test attached. {{Collections.singletonList}} is apparently serialized by optimized marshaller,
because when deserialized, it doesn't return collection of binary objects, but rather collection
of deserialized objects.
> Most likely the reason for this is that {{Collections.singletonList}} is not recognized
by {{BinaryUtils.knownCollection}} method.

This message was sent by Atlassian JIRA

View raw message