Regex Stackoverflow error with ExampleTables on Windows
-------------------------------------------------------

                 Key: JBEHAVE-242
                 URL: http://jira.codehaus.org/browse/JBEHAVE-242
             Project: JBehave
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.4.1, 2.4, 2.3.2
         Environment: Windows
            Reporter: Michael Zimmermann


Regex Stackoverflow error with ExampleTables on Windows, which partially 
originate from a JDK bug (StackOverflow with regex alternation like (.|\s)* ). 
The fix that works for me:

// Avoid alternation by using DOTALL and .* instead of (.|\s)*
PatternScenarioParser.java
private Pattern patternToPullScenarioTableIntoGroupOne() {
KeyWords keywords = configuration.keywords();
String table = keywords.examplesTable();
return compile(".*"+table+"\\s*(.*)", DOTALL);
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to