Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12314

Unexpected return type in case of retrieving Byte[]{1,2,3} from cache value.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • Docs Required, Release Notes Required

    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

          Activity

            People

              Unassigned Unassigned
              alapin Alexander Lapin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: