RFR: 7903735: Remove redundant method in generated code

Per Minborg pminborg at openjdk.org
Wed Dec 18 08:15:51 UTC 2024


On Tue, 17 Dec 2024 18:39:19 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

> Was looking at older issues and saw an opportunity for a refractor.
> I don't see a dependent PR feature for this repo but this is meant to be merged after https://github.com/openjdk/jextract/pull/265

In the event of a symbol not being found, a `NoSuchElementException` will be thrown instead of an `UnsatisfiedLinkError` that used to be thrown. This means the generated code will behave a bit differently.

On the upside, there is no need for capturing a new lambda upon each lookup which would improve startup time.

-------------

PR Comment: https://git.openjdk.org/jextract/pull/266#issuecomment-2550633578


More information about the jextract-dev mailing list