| Summary: | [Ant 1.7] More eager cleanup after execute --> macrodef stepping problems | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Darin Swanson <Darin_Swanson> |
| Component: | Ant | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.3 | ||
| Target Milestone: | 3.3 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Reworked AntDebugState to handle the new behavior and still work for the old. We have automated. tests that hit this as well. Please verify. verified |
Ant has moved to a more eager cleanup of task state for 1.7 This means that on task finished some instance variables we were using for debug support have been nulled out. This will lead to incorrect stepping into macrodefs. With the following test file, breakpoint on line 13, debug. Step Into Step Into Step Over The program resumes to completion. It should step out of the macrodef. <project default="type"> <macrodef name="eclipseMacro"> <attribute name="v" default="NOT SET" /> <attribute name="eclipse" default="yes" description="Testing Eclipse"/> <element name="some-tasks" optional="yes" /> <sequential> <echo>Eclipse!: @{v}</echo> </sequential> </macrodef> <target name="type"> <eclipseMacro v="This is v"> </eclipseMacro> <eclipseMacro v="This is v2"/> <eclipseMacro v="This is v3"/> <eclipseMacro v="This is v4"/> <eclipseMacro/> </target> </project>