Regex Stackoverflow error with ExampleTables on Windows

Description

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);
}

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created February 11, 2010 at 8:35 PM
Updated May 22, 2015 at 8:29 AM
Resolved February 19, 2010 at 9:30 AM