Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3050

Cache.replace should support arrays of primitive types

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.3.0.Final
    • 5.2.1.Final
    • Loaders and Stores
    • None

      org.infinispan.Cache.replace does not handle values as arrays of primitive types well. It compares the old and new value as .equals but this doesn't work for arrays of primitives. It should use Arrays.equals for such a case.

            [ISPN-3050] Cache.replace should support arrays of primitive types

            Thanks Galder, Mircea.

            Adam Kovari (Inactive) added a comment - Thanks Galder, Mircea.

            Documentation on the topic: https://docs.jboss.org/author/x/2oD2Aw

            Galder Zamarreño added a comment - Documentation on the topic: https://docs.jboss.org/author/x/2oD2Aw

            Galder Zamarreño added a comment - Adam, this is already possible since it was made possible thanks to ISPN-2281 : https://github.com/infinispan/infinispan/blob/master/core/src/test/java/org/infinispan/api/ByteArrayCacheTest.java

            Thanks Mircea, leave it with me

            Galder Zamarreño added a comment - Thanks Mircea, leave it with me

            The work did together with ISPN-2281 should solve this issue, as infinispan will support native arrays as keys-values.
            rh-ee-galder - Keeping this open till we'll add a test to prove it works.

            Mircea Markus (Inactive) added a comment - The work did together with ISPN-2281 should solve this issue, as infinispan will support native arrays as keys-values. rh-ee-galder - Keeping this open till we'll add a test to prove it works.

              rh-ee-galder Galder Zamarreño
              adam.kovari Adam Kovari (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: