You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Nikolay Izhikov (Jira)" <ji...@apache.org> on 2021/11/03 14:13:00 UTC
[jira] [Resolved] (IGNITE-12314) Unexpected return type in case of
retrieving Byte[]{1,2,3} from cache value.
[ https://issues.apache.org/jira/browse/IGNITE-12314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikolay Izhikov resolved IGNITE-12314.
--------------------------------------
Resolution: Duplicate
The issue resolved in scope of IGNITE-14742.
For {{IgniteSystemProperties#USE_TYPED_ARRAYS=true}} mode array component type preserved during SerDe.
> Unexpected return type in case of retrieving Byte[]{1,2,3} from cache value.
> ----------------------------------------------------------------------------
>
> Key: IGNITE-12314
> URL: https://issues.apache.org/jira/browse/IGNITE-12314
> Project: Ignite
> Issue Type: Bug
> Reporter: Alexander Lapin
> Priority: Major
> Labels: ise, newbie
>
> Unexpected return type in case of retrieving Byte[]\{1,2,3} from cache value:
> {code:java}
> cache.put("aaa", new Byte[] {1, 2, 3});
> cache.get("aaa");{code}
> Byte[3]@... expected with corresponding content, however Object[3]@... got.
>
> Seems that it's related to primitive wrapers, cause String[] as value works as expected:
> {code:java}
> cache.put("aaa", new String[] {"1", "2", "3"});
> cache.get("aaa");{code}
>
> Arrays of primitives also works as expected:
> {code:java}
> cache.put("aaa", new byte[] {1, 2, 3});
> cache.get("aaa");{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)