thanks Andreas. That accounts for the typetag. But what happened to the values? I got me the trunk, and I think OscMessage.print() is broken.
in add(int), you are adding the value to _myData
in setArguments(Object[]), you are adding the value to _myArguments
In the print() method, you are printing _myArguments only. So when I do an add(), the message is correct, but can't be printed.
Same thing with public Object[] arguments(), which got me confused while testing. So in the end messages get sent all right, but tests fail.
If I do this:
Code:
OscMessage m = new OscMessage("/test");
m.add(123)
This test will fail with an ArrayIndexOutOfBounds Exception:
Code:
assertEquals(new Integer(123), (Integer) m.arguments()[0]);
While if I do this:
Code:
OscMessage m = new OscMessage("/test");
Object[] args = {123};
m.setArguments(args);
The same test will pass. This only happens when you try to extend and unit test the lib, otherwise excellent lib.
best
alvaro