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

jextract ignores typedef to undefined structs

    XMLWordPrintable

    Details

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

      Description

      Some libraries define types like this:

      typedef struct TF_Tensor TF_Tensor;

      Where the thing being typedef'ed is undefined (this is possible since the library only uses opaque pointers to the undefined thing).

      In these cases, jextract doesn't emit any layout for TF_Tensor, which is understandable, but then leaves the user no option than to use a very general layout such as C_POINTER to workaround the issue, which makes the code harder to follow.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: