> I don't think that this test would actually fail - the byte in the first
> position of both arrays *should* be equal. However, if you were to check if
> the arrays themselves were equal, indeed, they would not be.

Sorry, got my example backward....

byte[] foo = new byte[1];
foo[0] = 'A';
struct.setXXX(foo);
byte[] bar = struct.getXXX();
foo[0] = 'B';
byte[] bar2 = struct.getXXX();
Assert.assertEquals(bar[0], bar2[0]);

this one will fail when today it succeeds.

Reply via email to