Closed keithrbennett closed 11 years ago
Hi Keith
The signature string is bit complicated. The terminator character ';' is only required for the class name. So you may write the first example as java_validator._invoke('validateMessage', '[BLjava.lang.String;', wire_data, zone); Between B and L is nothing. The second reduced example (thanks for the reduced example I always need it) as keith._invoke('foo', 'B', 7);
Best regards.
I'm trying to call a Java function function that takes an array of byte primitives (byte []) and a string. I've tried both of these but both produce an error:
In contrast, another call not involving primitives works:
I tried reducing this problem to a simpler form and found that I could not even invoke a function containing a single parameter which was a byte:
...meaning the direct call to foo() worked, but the call using _invoke did not. I also tried a lower case 'b', but that failed as well.
Is this a bug or am I doing something wrong?
Thanks, Keith