Apache OpenOffice (AOO) Bugzilla – Issue 73782
replace TODOs in rtl/uuid.cxx with better comments
Last modified: 2007-03-20 10:39:32 UTC
sal/rtl/source/uuid.cxx:1.11 l. 120, 124 both contain abort(); //TODO The TODO comment is misleading: As rtl_createUuid is a C function it must not throw, and as it is part of a stable API its signature cannot be changed so it cannot communicate failure. So it can only abort in case of a fatal error. Improve the code by stating that explicitly.
.
Would a new API that includes error handling in addition, and some deprecation be a good approach ?
Probably not worth it. If the random stuff does not work probably something very fundamental is going wrong (or we are out of memory, which OOo cannot handle graceful either), so any better recovery than abort() is probably not possible, anyway.