Jextract source generation sometimes uses the wrong layout constants

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P3
    • None
    • Affects Version/s: repo-panama
    • Component/s: tools

      For the following layout:

          struct Foo {
              unsigned char x;
          };

      Jextract source generation generates:

          static final MemoryLayout Foo$struct$LAYOUT_ = MemoryLayout.ofStruct(
              C_BOOL.withName("x")
          ).withName("Foo");

      Note that this references the C_BOOL constant, instead of the C_CHAR constant.

            Assignee:
            Unassigned
            Reporter:
            Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: