[foreign-jextract] RFR: Refresh docs to reflect Java 18 API changes

Jorn Vernee jvernee at openjdk.java.net
Tue Jan 18 14:52:10 UTC 2022


On Tue, 18 Jan 2022 14:30:54 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> This patch updates the memory access and linker docs to reflect the Java 18 API changes.
>
> doc/panama_ffi.md line 288:
> 
>> 286: try (ResourceScope scope = ResourceScope.newConfinedScope()) {
>> 287:     SegmentAllocator malloc = SegmentAllocator.nativeAllocator(scope);
>> 288: 	printf.invoke(malloc.allocateUtf8String("%d plus %d equals %d"), 2, 2, 4); //prints "2 plus 2 equals 4"
> 
> Suggestion:
> 
>     SegmentAllocator malloc = SegmentAllocator.nativeAllocator(scope);
>     printf.invoke(malloc.allocateUtf8String("%d plus %d equals %d"), 2, 2, 4); //prints "2 plus 2 equals 4"

Tab -> spaces. The indentation looks off in the rendered version otherwise

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

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


More information about the panama-dev mailing list