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

Store array component type in binary object

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.13
    • None
    • Implemented array component type in binary object
    • Docs Required, Release Notes Required

    Description

      Currently, an array of custom objects can't be retrieved from the cache

      public class BinaryObjectTest extends GridCommonAbstractTest {
          /** */
          @Test
          public void testArray() throws Exception {
              Ignite ign = startGrid();
      
              IgniteCache<Integer, TestClass1[]> cache = ign.createCache("my-cache");
      
              cache.put(1, new TestClass1[] {new TestClass1(), new TestClass1()});
              TestClass1[] obj = cache.get(1);
      
              assertEquals(TestClass1[].class, obj.getClass());
          }
      }
      

      The fix should preserve backward compatibility.

      Attachments

        Issue Links

          Activity

            People

              nizhikov Nikolay Izhikov
              nizhikov Nikolay Izhikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h