Remove redundant method in generated code

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools

      As we have introduced `SymbolLookup::FindOrThrow` we could remove the generated method:

      ```
          public static MemorySegment findOrThrow(String symbol) {
              return SYMBOL_LOOKUP.find(symbol)
                      .orElseThrow(() -> new UnsatisfiedLinkError("unresolved symbol: " + symbol));
          }
      ```

      However, this can only be made if targeting Java 23 or later so there is a compatibility issue to be solved here.

            Assignee:
            Nizar Benalla
            Reporter:
            Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: