Jonathan Gibbons Jonathan.Gibbons at Sun.COM
Tue Nov 3 13:44:41 PST 2009

Currently, javac does not generate package-info.class when contains no annotations.

This can cause issues for build systems that assume that for every 
*.java file, the compiler ought to generate a corresponding *.class file.

It appears that Ant 1.8 has apparently taken it upon itself to "work 
around" this issue, by generating package-info.class if javac does not. 
Does anyone have any opinions as to whether this is a good or bad idea? 
Is this something that should really be fixed in javac, perhaps as an 
optional behavior?

-- Jon

More information about the compiler-dev mailing list