DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40207>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40207

           Summary: hashCode() in Target breaks XmlLogger (and
                    CruiseControl)
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


We have a build structure with some nested calls from different build files
to a target imported from a master build file.

Something changed from 1.6.5 so that BuildListener methods are called in
a different order breaking XmlLogger which depends on a "targets" Hashtable.
The hashCode() in Target only depends on the target name so nested calls
to a target introduce problems with the XmlLogger Hashtable.

To reproduce use the attached build files and call:

ant -logger org.apache.tools.ant.XmlLogger -f buildtest2.xml

The build fails with an exception:

java.lang.RuntimeException: Mismatch - popped element = target:1 finished task
element = task:antcall

Also attached are logfiles produced with Ant 1.6.5 and 1.7-alpha and the
Log4jListener to illustrate the problem better.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to