Skip to content

Commit

Permalink
Fix VarArgs tests on arm64
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fkistner committed Nov 20, 2020
1 parent 2f6e9fd commit c155bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/com/sun/jna/VarArgsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ protected List<String> getFieldOrder() {
}
public int addVarArgs(String fmt, Number... args);
public String returnStringVarArgs(String fmt, Object... args);
public void modifyStructureVarArgs(String fmt, Object arg1, Object... args);
public String returnStringVarArgs2(String... args);
public void modifyStructureVarArgs(String fmt, Object... args);
public String returnStringVarArgs2(String fmt, String... args);
}
TestLibrary lib;
@Override
Expand Down

0 comments on commit c155bac

Please sign in to comment.