Apache OpenOffice (AOO) Bugzilla – Issue 51838
uno2cpp: catch UNO non-exception-type exceptions properly
Last modified: 2017-05-20 11:31:27 UTC
In all the different bridges/source/cpp_uno bridges, when calling from binary UNO to C++, all exceptions are caught via "catch (...)" and translated into an any. C++ exceptions for which there is no corresponding UNO type are mapped to com.sun.star.uno.RuntimeExceptions. However, C++ exceptions that represent non-exception UNO types (e.g., "throw com::sun::star::uno::Uik()") are not mapped to com.sun.star.uno.RuntimeException. Theoretically, all this would not be an issue, as the C++ mapping of a UNO interface method should have an exception specification that only allows UNO exceptions, but for example on unxlngi6 we compile with -fno-enforce-eh-specs.
accepted
Reset assigne to the default "issues@openoffice.apache.org".