Java: avoid setting Status attributes in the C side.
Make File implementation consistent with the rest of the API.