The following comment has been added to this issue:
Author: Robin Morris
Created: Thu, 5 Feb 2004 4:21 AM
Body:
Agreed it does appear to be an ANT problem. This looks to be due to it checking the
.class file for dependencies rather than the .java file.
static final values are put directly into the .class files using the value (use jad
and you will see). The class file does not retain the information about which class
this static final value came from.
This makes it impossible from the .class file to know where this constant came from
and hence if it needs recompiling.
Thinking about it this also means that jad can never give you a true representation of
your original code...
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1149&page=comments#action_16466
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1149
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1149
Summary: public static final value changes do not force a recompile of dependent
modules
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
core
Assignee:
Reporter: Robin Morris
Created: Wed, 4 Feb 2004 1:16 PM
Updated: Thu, 5 Feb 2004 4:21 AM
Description:
public static final values are erplaced t compile time and put directly into the class
files. See:
http://www.javaworld.com/javaqa/2003-03/02-qa-0328-constant_p.html
Dependent modules do not get recompiled if a public static final from one module gets
chnaged.
This results in two differnt class files being generated (for the dependent modules)
if the code was built from scratch verses built through maven.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]