openoffice-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Issue 124970] Left-mouse-down above text edit area crashes, "Index out of bounds"
Date Mon, 16 Jun 2014 13:16:17 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=124970

--- Comment #18 from hdu@apache.org <hdu@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.

Mime
View raw message