You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2014/04/10 11:24:15 UTC

[jira] [Updated] (TAP5-2317) AbstractFlow.count() thows StackOverflowError for large Flows

     [ https://issues.apache.org/jira/browse/TAP5-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Kemnade updated TAP5-2317:
---------------------------------

    Attachment: flow-stack-overflow.groovy

The attached groovy script causes the error.

> AbstractFlow.count() thows StackOverflowError for large Flows
> -------------------------------------------------------------
>
>                 Key: TAP5-2317
>                 URL: https://issues.apache.org/jira/browse/TAP5-2317
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-func
>    Affects Versions: 5.4
>            Reporter: Jochen Kemnade
>         Attachments: flow-stack-overflow.groovy
>
>
> AbstractFlow.count() calls itself recursively. This can lead to a StackOverflowError because AFAIK Java does not support tail-call optimization.



--
This message was sent by Atlassian JIRA
(v6.2#6252)