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

Roman Puchkovskiy commented on IGNITE-18106:
--------------------------------------------

Thanks!

> prepareMarshal()/unmarshal() are not relayed for Collection subtypes
> --------------------------------------------------------------------
>
>                 Key: IGNITE-18106
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18106
>             Project: Ignite
>          Issue Type: Bug
>          Components: networking
>            Reporter: Roman Puchkovskiy
>            Assignee: Roman Puchkovskiy
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {{@Marshallable}} fields cause prepareMarshal()/unmarshal() methods to be 
> generated; also, these methods need to be called for each message containing 
> a marshallable field. This means that any container that contains messages 
> must relay calls to them (that is, it must contain a snippet in its 
> prepareMarshal()/unmarshal() to iterate its elements and call the 
> corresponding method on them). This is currently implemented for single 
> message fields, for arrays and {{{}Collection{}}}, but not for subtypes of 
> {{Collection}} (like lists).
> We should either support subtypes of {{Collection}} fully (and relay the 
> methods calls), or not support them at all (and fail compilation if someone 
> defines such a structure).
> The first (support)  seems preferrable, it's easy to implement and does not 
> seem to pose any dangers.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to