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

jextract generates non-existent type reference for typedef on typedef

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      File: t.h

      typedef union {
         int i;
         char c;
      } Foo;

      typedef Foo Bar;

      void func(Bar* b);

      ----

      $ jextract -d . t.h

      only t.class (Header class) and t$Bar.class (Struct class) are generated. But t.class has type reference to non-existent t$Foo

      $ javap t

      public interface t {
        public abstract void func(java.foreign.memory.Pointer<t$Foo>);
      }

        Attachments

          Activity

            People

            • Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: