Apache OpenOffice (AOO) Bugzilla – Issue 21558
Incorrect exception thrown from XText::insertTextContent()
Last modified: 2013-02-24 21:07:57 UTC
XText::insertTextContent() is defined as being able to throw a com::sun::star::lang::IllegalArgumentException but if I use the code model.Text.insertTextContent( controller.getViewCursor(), table, False); where the controller.getViewCursor() is for for model.Text ( e.g. it is for an element inside a table in the model.Text then the following expection happens : uno.com.sun.star.uno.RuntimeException: text interface and cursor not related Although the exception is useful/readbale, it should really be an IllegalArgumentException
implementation defect => forwarding to reponsible developer
Priority lowered to 5.
cn: target to OOo later
Please explain why the priority has been set to 5 And why this *simple* bug ( yes I've looked at the code ), cannot be fixed in 1.1 series ?
Because there is no functionality missing or broken. It is only a matter of *wrong* type of exception, an exception is thrown anyway... Thus it has rather low priority compared to other bugs where functionality or documentation is really missing or broken. You surely more like to have one of those (for example your compareRegiongStart issue) fixed instead of 10 issues like this one. And if you really think this one is that important. You should describe why you need to have it fixed. Also if you find it easy enough to fix you're welcome to provide a patch by yourself.
Created attachment 74110