Bug 44226 - Repeated token in recursion caused "Infinite loop in tokens" error
Summary: Repeated token in recursion caused "Infinite loop in tokens" error
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: 1.7.0
Hardware: All All
: P2 normal (vote)
Target Milestone: 1.8.0
Assignee: Ant Notifications List
URL:
Keywords:
: 41291 45400 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-14 06:46 UTC by Andrew Brett
Modified: 2009-05-14 06:21 UTC (History)
4 users (show)



Attachments
Fix + Updated test (1.50 KB, patch)
2008-06-19 04:20 UTC, Adam Bryzak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Brett 2008-01-14 06:46:49 UTC
With token recursion on, a filtersfile of the form:
===
WIBBLE=wobble
WOO=@WIBBLE@-@WIBBLE@
===
is incorrectly flagged as having an infinite loop.
Comment 1 Adam Bryzak 2008-06-19 04:20:31 UTC
Created attachment 22142 [details]
Fix + Updated test

This was caused because the token added to passedTokens isn't removed after each level of recursion has finished.
Comment 2 Stefan Bodewig 2008-08-18 07:49:22 UTC
slightly modified version of patch is svn revision 686775.

Thanks!
Comment 3 Stefan Bodewig 2008-08-25 08:01:04 UTC
*** Bug 45400 has been marked as a duplicate of this bug. ***
Comment 4 Stefan Bodewig 2009-05-14 06:21:46 UTC
*** Bug 41291 has been marked as a duplicate of this bug. ***