RFR: 8256865: Foreign Memory Access and Linker API are missing NPE checks [v2]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Mon Nov 23 18:22:15 UTC 2020


On Mon, 23 Nov 2020 17:58:22 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix cut/paste error in FunctionDescriptor
>
> src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/FunctionDescriptor.java line 152:
> 
>> 150:      * @return the new function descriptor.
>> 151:      * @throws NullPointerException if either {@code addedLayouts == null}, or any of the
>> 152:      * layouts in {@code addedLayouts} is null. at throws NullPointerException if any of the new argument layouts is null.
> 
> Spurious `@throws` tag here

Good catch

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

PR: https://git.openjdk.java.net/jdk/pull/1388


More information about the core-libs-dev mailing list