Problem with java bindings in VTK 9

This actually allowed me to find a similar (but less pervasive) bug in the Python wrappers.