missing `target_java_file.close()`?