RFR: 7903272: Make method handle methods private
Per Minborg
duke at openjdk.org
Thu Sep 1 08:06:31 UTC 2022
On Tue, 30 Aug 2022 14:42:45 GMT, Per Minborg <duke at openjdk.org> wrote:
> xxxx$MH methods should be declared private to reduce cluttering in end users' IDEs and elsewhere.
>
> This PR also solves esthetic issues in the generated code.
There is a middle way where we could put the native method handles in an inner class (e.g. MethodHandles) exposing these methods for the casual user while still keeping the most used API clean.
Before: `foo_h.bar$MH()`
After: `foo_h.MethodHandles.bar()`
-------------
PR: https://git.openjdk.org/jextract/pull/67
More information about the jextract-dev
mailing list