Method Signature for multiple return values
For a method such as
<method name='GetAllIDs'>"
<arg name='responseCode' type='u' direction='out'/>"
<arg name='IDs' type='as' direction='out'/>"
</method>"
Java interface...
public interface ServiceDescriptionBusInterface
{
…
public class GetAllIDsValues {
@Position(0) public int responseCode;
@Position(1) public String[] IDs;
}
…
@BusMethod(replySignature="ias")
public GetAllIDsValues GetAllIDs() throws BusException;
…
GetAllIDsValues result = new GetAllIDsValues();
result.IDs = new String[];
//this crashes...
result = proxy.getInterface(ServiceDescriptionBusInterface.class).GetAllIDs();
The code above is getting "java.lang.StringIndexOutOfBoundsException: length=1; regionStart=2; regionLength=-2”
at proxy.getInterface. Is my bus method signature correct?