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

Jacob Abrams <[email protected]> changed:

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

--- Comment #2 from Jacob Abrams <[email protected]> 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 R.java 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to