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

functional interface extraction broken after API refresh

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: