Hi all,I’m having a problem passing a dynamic Byte array from LS to Java. Consider the following LS code :
Dim t2(2) As Byte
t2(0) = 0
t2(1) = 0
t2(2) = 0
Dim t3() As Byte
Redim t3(2)
t3(0) = 0
t3(1) = 0
t3(2) = 0
Call javaObj.setArr(t2)
Call javaObj.setArr(t3)
Java function :
public void setArr(byte arr)
{
[…]
}
The call with t2 works perfectly.
The call with t3 fails with the following LS2J error:
Parameter mismatch calling Java method. setArr
javaError.ErrorMsg and javaError.StackTrace are both empty.
I could not find any documentation that talks about dynamic arrays and LS2J. Anyone can share some experience with this ?
Alexis