[foreign-memaccess+abi] RFR: 8307253: Make FunctionDescriptor::toMethodType an instance method of Linker [v3]
Jorn Vernee
jvernee at openjdk.org
Mon May 8 15:18:20 UTC 2023
On Mon, 8 May 2023 14:22:51 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> src/java.base/share/classes/jdk/internal/foreign/FunctionDescriptorImpl.java line 55:
>>
>>> 53: throw new IllegalArgumentException("Unsupported padding layout return in function descriptor: " + resLayout);
>>> 54: }
>>> 55: Optional<MemoryLayout> paddingLayout = argLayouts.stream().filter(l -> l instanceof PaddingLayout).findAny();
>>
>> This could use `Stream::anyMatch`.
>
> Uhm - I thought about that when writing the code, but then I can't print out the problematic layout.
Ok.
-------------
PR Review Comment: https://git.openjdk.org/panama-foreign/pull/830#discussion_r1187569179
More information about the panama-dev
mailing list