ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 30716] javac task should have built in dependancy finder as in the depend task
Date Thu, 15 Apr 2010 21:20:39 GMT

Jacob Abrams <> changed:

           What    |Removed                     |Added
           Priority|P3                          |P2
            Version|1.6.2                       |1.7.0
           Severity|enhancement                 |major

--- Comment #2 from Jacob Abrams <> 2010-04-15 17:20:37 EDT ---
I believe this is more than just an enhancement request, it is actually a bug.
I don't think these two situations should ever produce different results:

1. calling javac with a destination directory that contains some previously
compiled .class files
2. calling java with an empty destination directory

If these produce different results then no programmer will ever trust existing
.class files and will want to clean them every time.

Please see the attached test suite that demonstrates the issue, just change the
int value in to something else and run:

1. ant compile
2. ant run

Notice that the change never takes effect, but if you do the following it does:

1. ant clean
2. ant compile
3. ant run

This is because static final integers are copied into the class files using
them, even if those class files don't change they need to be recompiled if the
int does. The simple algorithm used by ant to determine dependency is causing
this problem and should be eliminated.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message