Fix JavaPackageInfo creation.