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

Java 9: rework "sun.misc.SharedSecrets" and "sun.misc.JavaNioAccess" usages

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4
    • general
    • None

    Description

      Problem
      We have two usages of sun.misc.SharedSecrets and sun.misc.JavaNioAccess in the project. Both methods do the same thing - convert native pointer to ByteBuffer:
      GridUnsafe.wrapPointer
      PageMemoryImpl.wrapPointer

      Java9 cannot compile it because these classes were moved to jdk.internal.misc package.

      Suggested fix
      1) Remove PageMemoryImpl.wrapPointer method and use GridUnsafe.wrapPointer instead.
      2) Rework GridUnsafe.wrapPointer to reflection-based approach.

      Attachments

        Issue Links

          Activity

            People

              agura Andrey N. Gura
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: