[ http://jira.codehaus.org/browse/JBEHAVE-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209950#action_209950 ]
Mauro Talevi commented on JBEHAVE-242: -------------------------------------- Applied, thanks! It passes all examples. I'd deploy a snapshot tomorrow and we'll see if it has any other side effect. > 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.3.2, 2.4, 2.4.1 > Environment: Windows > Reporter: Michael Zimmermann > Assignee: Mauro Talevi > Fix For: 2.5 > > > 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