Jextract generates duplicate allocator parameters

XMLWordPrintable

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

      Consider this C code:

      struct A { int x; };
      struct A foo(int allocator);

      Jextract generates the following binding:

      public static MemorySegment foo(SegmentAllocator allocator, int allocator) { ... }

      Note the duplicate "allocator" parameter name.


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

              Created:
              Updated:
              Resolved: