https://issues.apache.org/ooo/show_bug.cgi?id=124970

--- Comment #18 from h...@apache.org <h...@apache.org> ---
In comment 8 a root cause of the problem has been identified as an exception
hierarchy mismatch. There might be a related root cause (an exception type
mismatch) though: The code base has a couple of "throw new IndexOutOfBounds"
lines but there is no throw list that specifies a IndexOutOfBounds pointer! The
throw lists mention the exception by value though, which means, that the
exception was intended to be thrown by value.

There are many other related exception problems in the code base and there
seems to be much confusion, so I'd like to point to the best practices on this
topic which are outlined in issue 122768 (catch by const reference) and issue
125105 (throw by value, NOT by pointer).

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to