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

Jextract source generation sometimes uses the wrong layout constants

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: