Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2317

AbstractFlow.count() thows StackOverflowError for large Flows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-func
    • Labels:

      Description

      AbstractFlow.count() calls itself recursively. This can lead to a StackOverflowError because AFAIK Java does not support tail-call optimization.

        Attachments

        1. flow-stack-overflow.groovy
          0.2 kB
          Jochen Kemnade
        2. 0001-use-a-loop-to-count-a-Flow.patch
          1 kB
          Jochen Kemnade

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              jkemnade Jochen Kemnade
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: