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

jextract generates redundant functional interafces

    XMLWordPrintable

    Details

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

      Description

      In this example:

      typedef void (*callback_t)(void *arg);

          typedef struct first_handler {
               callback_t cb;
          } first_handler_t;

          typedef struct second_handler {
               callback_t cb;
          } second_handler_t;


      Jextract ends up generating TWO identical functional interfaces, one inside first_handler and another inside second_handler.

      There is no functional interface at the toplevel either, which is odd, given that the function pointer typedef belongs to the toplevel.

        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: