Details
Description
Unexpected return type in case of retrieving Byte[]{1,2,3} from cache value:
cache.put("aaa", new Byte[] {1, 2, 3}); cache.get("aaa");
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:
cache.put("aaa", new String[] {"1", "2", "3"}); cache.get("aaa");
Arrays of primitives also works as expected:
cache.put("aaa", new byte[] {1, 2, 3}); cache.get("aaa");
Attachments
Issue Links
- duplicates
-
IGNITE-14742 Store array component type in binary object
- Resolved