jni and ellipsis
I have a function in c that adds a row to a table. The function takes as arguments various orderings of ints, floats, and strings by using an ellipsis `add_row(int arg1, int arg2, ...)` and parses this information based on how the columns are set up.

I need to call this function from Java and am using JNI. I'm not sure what the best way to do this is especially with Java's stricter typing. I've considered a few solutions but none of them seem any good / I'm not sure how to implement them: passing everything as strings, passing a jobjectArray, or passing cell values one at a time.

Any help is much appreciated.

Thanks,

Ben  
jni and ellipsis
===

I have a function in c that adds a row to a table. The function takes as arguments various orderings of ints, floats, and strings by using an ellipsis `add_row(int arg1, int arg2, ...)` and parses this information based on how the columns are set up.

I need to call this function from Java and am using JNI. I'm not sure what the best way to do this is especially with Java's stricter typing. I've considered a few solutions but none of them seem any good / I'm not sure how to implement them: passing everything as strings, passing a jobjectArray, or passing cell values one at a time.

Any help is much appreciated.

Thanks,

Ben  