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

functional interfaces are not generated for struct fields/global variables with function pointers

    XMLWordPrintable

    Details

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

      Description

      Consider this example:

      struct Foo {
        int (*foo)(float, double);
      };

      For this, jextract generated (rightly) the getter/setter for the function pointer "foo".

      However, the generated code doesn't feature a functional interface to help the user allocating a stub which can be assigned to the struct field. The same is true for global variables.

        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: