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

jextract fails on anonymous bitfields used as manual padding

XMLWordPrintable

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

      Jextract fails on the following example:

      ```
      struct Foo {
          unsigned int x: 1;
          int :7;
          unsigned int y: 8;
          int :16;
          int z;
      };
      ```

      The current code tries to look up the second field, but because it has no name this throws an illegal field name error.

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: