You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/11/04 02:43:10 UTC

DO NOT REPLY [Bug 43114] package-info.java repeatedly compiled

https://issues.apache.org/bugzilla/show_bug.cgi?id=43114





--- Comment #13 from Jesse Glick <jg...@netbeans.org>  2008-11-03 17:43:09 PST ---
One possibility to consider: when running javac and passing a package-info.java
source file to it, if no package-info.class is created, make one yourself. (It
would no annotations and thus essentially be empty except for the package name.
The format should be simple to write directly from Java code.) This would
ensure that up-to-date checks always worked sanely, as if every p-i.java had at
least one class- (or runtime-) retention annotation.

You could also try to do this only if you detect an annotation in the file
(just tokenize it, strip out comments, and look for '@').

The empty p-i.class files should be harmless at runtime, but it would perhaps
be possible to exclude them from JARs by default.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.