Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276136

functional interface extraction broken after API refresh

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      The foreign API refresh changed the way in which the linker API deals with by-reference parameters/returns. By-ref parameters are mapped to the Addressable type, while By-ref returns are mapped to the MemoryAddress type. The reverse mapping is used for upcalls.

      Since a functional interface generated by jextract has a factory which allows to call an upcall stub using a downcall method handle, this type mismatch has to be rectified, using type conversions, or invokeExact will fail.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: