RFR: 7903628: Replace ofAddress method in FI classes with a static invoke method
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Jan 16 17:21:48 UTC 2024
On Tue, 16 Jan 2024 16:50:07 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> src/main/java/org/openjdk/jextract/impl/FunctionalInterfaceBuilder.java line 92:
>>
>>> 90: MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
>>> 91:
>>> 92: static \{methodType.returnType().getSimpleName()} invoke(MemorySegment funcPtr\{allocParam}\{paramStr}) {
>>
>> this should be `public` right?
>
> Yes. It's implicitly `public` (due to being inside an interface).
ah, of course!
-------------
PR Review Comment: https://git.openjdk.org/jextract/pull/180#discussion_r1453738367
More information about the jextract-dev
mailing list