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

Jorn Vernee jvernee at openjdk.java.net
Fri Nov 20 19:01:16 UTC 2020


On Fri, 20 Nov 2020 18:49:17 GMT, Maurizio Cimadamore <mcimadamore 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`?

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

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


More information about the panama-dev mailing list