Baljit Singh created MATH-1532:
----------------------------------
Summary: Lazy evaluation in AbstractRegion is not threadsafe
Key: MATH-1532
URL: https://issues.apache.org/jira/browse/MATH-1532
Project: Commons Math
Issue Type: Bug
Affects Versions: 3.6.1
Reporter: Baljit Singh
In the documents for
[AbstractRegion.html#getTree(boolean)|https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/org/apache/commons/math3/geometry/partitioning/AbstractRegion.html#getTree(boolean)],
it says the following:
{quote}Since computing the boundary is not always required and can be
time-consuming for large trees, these internal nodes attributes are computed
using lazy evaluation only when required by setting the
includeBoundaryAttributes argument to true.{quote}
However, the lazy evaluation is not thread-safe. Calling other methods in
multithreaded environment that rely perform {{getTree(true)}} leads to race
condition.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)