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

InternalEntryFactory mixing up lifespan and created for MortalCacheValue

XMLWordPrintable

    • Low

      For MortalCacheValue, InternalEntryFactory.createValue(Object, long, long, long , long) was doing the following:

      if (lifespan > -1 && maxIdle < 0) return new MortalCacheValue(v, lifespan, created);

      But the MortalCacheValue constructor was like this:

      MortalCacheValue(Object value, long created, long lifespan)

      { super(value); this.created = created; this.lifespan = lifespan; }

      So that factory method was mixing up created and lifespan values.
      JBMAR externalizer implementations uses this factory method and hence when testing it, the issue arised.

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: