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: *