ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Lapin (Jira)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-12314) Unexpected return type in case of retrieving Byte[]{1,2,3} from cache value.
Date Mon, 21 Oct 2019 16:12:00 GMT
Alexander Lapin created IGNITE-12314:
----------------------------------------

             Summary: 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


Unexpected return type in case of retrieving Byte[]\{1,2,3} from cache value:
 
{color:#172b4d}{{cache.{color:#172b4d}put{color}({color:#36b37e}"aaa"{color}, {color:#0052cc}new{color}
{color:#6554c0}Byte{color}[] {{color:#0052cc}1{color}, {color:#0052cc}2{color}, {color:#0052cc}3{color}});
  cache.{color:#172b4d}get{color}({color:#36b37e}"aaa"{color});}}{color}
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:
 
{color:#172b4d}{{cache.{color:#172b4d}put{color}({color:#36b37e}"aaa"{color}, {color:#0052cc}new{color}
{color:#6554c0}String{color}[] {{color:#36b37e}"1"{color}, {color:#36b37e}"2"{color}, {color:#36b37e}"3"{color}});
      cache.{color:#172b4d}get{color}({color:#36b37e}"aaa"{color});}}{color}
Arrays of primitives also works as expected:
 
{color:#172b4d}{{cache.{color:#172b4d}put{color}({color:#36b37e}"aaa"{color}, {color:#0052cc}new{color}
{color:#0052cc}byte{color}[] {{color:#0052cc}1{color}, {color:#0052cc}2{color}, {color:#0052cc}3{color}});
      cache.{color:#172b4d}get{color}({color:#36b37e}"aaa"{color});}}{color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message