You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Peter Donald (JIRA)" <ji...@apache.org> on 2011/06/22 12:11:09 UTC
[jira] [Closed] (BUILDR-399) invoke_with_call_chain does not
restore call chain correctly
[ https://issues.apache.org/jira/browse/BUILDR-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Donald closed BUILDR-399.
-------------------------------
> invoke_with_call_chain does not restore call chain correctly
> ------------------------------------------------------------
>
> Key: BUILDR-399
> URL: https://issues.apache.org/jira/browse/BUILDR-399
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.3.5
> Reporter: Pepijn Van Eeckhoudt
> Priority: Critical
> Fix For: 1.4
>
> Attachments: spec.txt
>
>
> invoke_with_call_chain currently does
> begin
> old_chain, Thread.current[:rake_chain] = Thread.current[:rake_chain], new_chain
> execute(task_args) if needed?
> ensure
> Thread.current[:rake_chain] = nil
> end
> The ensure block restores the call chain incorrectly. The call chain should be restored to old_chain rather than nil.
> Attached spec reproduces the issue.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira