-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
21
-
None
Linker.nativeLinker().downcallHandle(
Linker.nativeLinker().defaultLookup().find("printf").get(),
FunctionDescriptor.of(JAVA_INT, ADDRESS, JAVA_INT, JAVA_INT, JAVA_INT),
Linker.Option.firstVariadicArg(4)
);
Here argument index 4 is invalid for the given function descriptor. Hence expect IllegalArgumentException to be thrown, but is not thrown.
When tried with index 5, exception is thrown indeed.
Linker.nativeLinker().defaultLookup().find("printf").get(),
FunctionDescriptor.of(JAVA_INT, ADDRESS, JAVA_INT, JAVA_INT, JAVA_INT),
Linker.Option.firstVariadicArg(4)
);
Here argument index 4 is invalid for the given function descriptor. Hence expect IllegalArgumentException to be thrown, but is not thrown.
When tried with index 5, exception is thrown indeed.
- relates to
-
JDK-8310405 Linker.Option.firstVariadicArg should specify which index values are valid
- Resolved