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

jextract generates non-existent type reference for typedef on typedef

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-panama
    • repo-panama
    • tools
    • generic
    • generic

      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>);
      }

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

              Created:
              Updated:
              Resolved: