[foreign-abi] RFR: 8256466: MemoryLayout factories do not guard against null layouts

Maurizio Cimadamore mcimadamore at openjdk.java.net
Fri Nov 20 19:14:18 UTC 2020


On Fri, 20 Nov 2020 18:58:25 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> This patch fixes the remaining issues with NPE in javadoc and implementation in the foreign-abi branch. For testing only few extra lines in the harness were required, the most difficult part being the VaList/Builder stuff (since these are scopd abstractions which can only be used in a certain way).
>
> test/jdk/java/foreign/TestNulls.java line 90:
> 
>> 88:             CLinker.class,
>> 89:             CLinker.VaList.class,
>> 90:             CLinker.VaList.Builder.class
> 
> What about `FunctionDescriptor`?

Doh - forgot about that one!

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

PR: https://git.openjdk.java.net/panama-foreign/pull/399


More information about the panama-dev mailing list