From 011f6e5f046cf7de6c2d5f8e344a755f91e4c67a Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Mon, 13 Dec 2021 19:31:41 +0000 Subject: [PATCH 1/4] Misc foreign API javadoc fixes --- .../jdk/incubator/foreign/CLinker.java | 11 ++++---- .../jdk/incubator/foreign/MemoryAddress.java | 4 ++- .../jdk/incubator/foreign/MemorySegment.java | 26 +++++++++---------- .../incubator/foreign/SegmentAllocator.java | 1 - .../classes/jdk/incubator/foreign/VaList.java | 4 +-- .../jdk/incubator/foreign/ValueLayout.java | 2 +- .../jdk/incubator/foreign/package-info.java | 18 ++++++------- 7 files changed, 34 insertions(+), 32 deletions(-) diff --git a/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/CLinker.java b/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/CLinker.java index 745e27691dd..4ba44bd2dc6 100644 --- a/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/CLinker.java +++ b/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/CLinker.java @@ -55,7 +55,7 @@ * {@linkplain #downcallHandle(FunctionDescriptor) Linking a foreign function} is a process which requires a function descriptor, * a set of memory layouts which, together, specify the signature of the foreign function to be linked, and returns, * when complete, a downcall method handle, that is, a method handle that can be used to invoke the target native function. - * The Java {@link java.lang.invoke.MethodType method type} associated with the returned method handle is + * The Java {@linkplain java.lang.invoke.MethodType method type} associated with the returned method handle is * {@linkplain #downcallType(FunctionDescriptor) derived} from the argument and return layouts in the function descriptor. * More specifically, given each layout {@code L} in the function descriptor, a corresponding carrier {@code C} is inferred, * as described below: @@ -69,7 +69,8 @@ *
  • or, if {@code L} is a {@link GroupLayout}, then {@code C} is set to {@code MemorySegment.class}
  • * *

    - * The downcall method handle type, derived as above, might be decorated by additional leading parameters: + * The downcall method handle type, derived as above, might be decorated by additional leading parameters, + * in the given order if both are present: *