
14 Feb
2012
14 Feb
'12
10:18 a.m.
Hi, I'm here again with another problem concerning boxes and Java bindings. I found by chance a sequence of operations which gives a wrong result. It is difficult to describe what happens, therefore I prepared a small Java program exhibiting the bad behavior. The program should print
A in 0, B in 1 A in 0, B in 1 A in 0, B in 4 false A in 0, B in 4
but it prints:
A in 0, B in 1 A in 0, B in 1 A in 0, B in 4 false A in 0, B in [1, 4]
Cheers, --gianluca