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

AbstractFlow.count() thows StackOverflowError for large Flows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4
    • 5.4
    • tapestry-func

    Description

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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: