Skip to content

Commit 26064a5

Browse files
fkistnertresf
authored andcommitted
Fix VarArgs tests on arm64
Arm64 calling convention requires varargs to always be passed on the stack. JNA's and ffi's argument handling logic seems to handle this case correctly, but it is important that the Java definitions match their native counterparts exactly.
1 parent 891c2b4 commit 26064a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/com/sun/jna/VarArgsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ protected List<String> getFieldOrder() {
4242
}
4343
public int addVarArgs(String fmt, Number... args);
4444
public String returnStringVarArgs(String fmt, Object... args);
45-
public void modifyStructureVarArgs(String fmt, Object arg1, Object... args);
46-
public String returnStringVarArgs2(String... args);
45+
public void modifyStructureVarArgs(String fmt, Object... args);
46+
public String returnStringVarArgs2(String fmt, String... args);
4747
}
4848
TestLibrary lib;
4949
@Override

0 commit comments

Comments
 (0)