Issue 51838

Summary: uno2cpp: catch UNO non-exception-type exceptions properly
Product: udk Reporter: Stephan Bergmann <stephan.bergmann.secondary>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P4 CC: issues
Version: 680m115   
Target Milestone: AOO PleaseHelp   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Stephan Bergmann 2005-07-12 13:59:50 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.
Comment 1 Stephan Bergmann 2005-07-12 14:00:41 UTC
accepted
Comment 2 Marcus 2017-05-20 11:31:27 UTC
Reset assigne to the default "issues@openoffice.apache.org".