This is very important thing because we need same thing in .NET/CPP
platforms. I think we should extend the protocol and add type IDs to
container's header: Provided that Java do not have normal generics, it will
be a no-op for Collection and Map. But it will be used extensively in .NET
and CPP.

Do we have a ticket for this?

On Fri, Feb 3, 2017 at 12:15 PM, ALEKSEY KUZNETSOV <alkuznetsov...@gmail.com
> wrote:

> it
> is org.apache.ignite.internal.processors.cache.binary.
> CacheObjectBinaryProcessorImpl#marshalToBinary()
> method which creates Object array and put binaries into it, which
> eliminates array's primary class info. So i suggest to make return it array
> of correct type. For example , marshalToBinary( TestObject[]{ TestObject1,
> TestObject2 } ) returns TestObject[]{ Binary1, Binary2 }
>
> чт, 2 февр. 2017 г. в 19:57, Denis Magda <dma...@apache.org>:
>
> > Yes, this is exactly the reason why this ticket is created. Presently,
> > binary marshaller ignores custom type for arrays. We need to find a way
> how
> > to handle this.
> >
> > —
> > Denis
> >
> > > On Feb 2, 2017, at 6:23 AM, ALEKSEY KUZNETSOV <
> alkuznetsov...@gmail.com>
> > wrote:
> > >
> > > I founded that cache.get(i) actually returns an array, containing
> > > TestObject. But somehow the type of returned value is Object[] not
> > > TestObject[]
> > >
> > > ср, 1 февр. 2017 г. в 22:26, Denis Magda <dma...@apache.org>:
> > >
> > >> Excellent, please share the way you want to fix the issue with the
> > >> community. You might get a valuable feedback before getting down to
> > coding.
> > >>
> > >> —
> > >> Denis
> > >>
> > >>> On Feb 1, 2017, at 1:18 AM, ALEKSEY KUZNETSOV <
> > alkuznetsov...@gmail.com>
> > >> wrote:
> > >>>
> > >>> will take https://issues.apache.org/jira/browse/IGNITE-3244
> > >>> --
> > >>>
> > >>> *Best Regards,*
> > >>>
> > >>> *Kuznetsov Aleksey*
> > >>
> > >> --
> > >
> > > *Best Regards,*
> > >
> > > *Kuznetsov Aleksey*
> >
> > --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>

Reply via email to