JBehave
  1. JBehave
  2. JBEHAVE-160

Improve regex-based scenario parsing

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Provide an alternative implementation of scenario parser that does not suffer from regex stack overflow issue:

      http://jbehave.org/documentation/known-issues/regex-stack-overflow/

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Assignee Mauro Talevi [ maurotalevi ]
        Hide
        Mauro Talevi added a comment -

        Refactored multi-scenario parsing to split scenarios by keyword instead of pattern to avoid stack overflow on Windows.
        Made splitScenarios(String) protected so behaviour can be overridden by subclasses. Previous split strategy is still available via protected method splitScenariosWithPattern(String).

        Show
        Mauro Talevi added a comment - Refactored multi-scenario parsing to split scenarios by keyword instead of pattern to avoid stack overflow on Windows. Made splitScenarios(String) protected so behaviour can be overridden by subclasses. Previous split strategy is still available via protected method splitScenariosWithPattern(String).
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: