binginds/java: fixed issue when converting returned c-types to java

This fixes an issue from the future