Nested struct typedefs fail to compile

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      Consider this C header:

      ```
      struct Outer {
          struct Inner { int x; } a;
      };

      typedef struct Inner T;
      ```

      The generated code for T is like this:

      ```
      public class T extends Outer.Inner { ... }
      ```

      This is all good, but Outer.Inner is final:

      ```
      public class Outer {
          ...
          public static class Inner { ... }
      }
      ```

      So this program will fail to compile.

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: