Details
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
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] | |
Fix Version/s | 2.5 [ 15850 ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Mauro Talevi
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Applied, thanks!
It passes all examples. I'll deploy a snapshot tomorrow and we'll see if it has any other side effect.