functional interface extraction broken after API refresh

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: repo-panama
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: