The package-info.class files generated by generateMissingPackageInfoClasses in the Javac task have a fixed class-file version (0x31 - Java 1.5). They should be created by using the specified target-version of the javac-task or in case none is given the javac-version.