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

jextract generates non-existent type reference for typedef on typedef

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • repo-panama
    • repo-panama
    • tools
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: