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

Avoid using sun.misc.VM

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

XMLWordPrintable

      The function org.infinispan.container.entries.PrimitiveEntrySizeCalculator.IntegerCacheConstraints.calculateMaxIntCache() is using sun.misc.VM.

      This class is being moved and "idden" in Java 9:

      Could we try avoiding the need for this, or explore alternatives?

      One could use reflection to see if the class is available without loading it explicitly, but that still needs some sensible fallback for the case in which the class isn't available.

      Even if this looks like a small detail, this completely blocks the possibility to test Infinispan on Java 9.

              sgrinove Sanne Grinovero (Inactive)
              sgrinove Sanne Grinovero (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: