Trying to replicate https://issues.apache.org/jira/browse/MATH-449