Issue 32550

Summary: Ensure unique IDs in com.sun.star.lang.XTypeProvider.getImplementationId
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: 680m49   
Target Milestone: AOO PleaseHelp   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Stephan Bergmann 2004-08-04 10:24:28 UTC
That method is documented to return unique IDs, but fails to specify how
different entities can guarantee that they do not create clashing IDs (e.g., by
providing a registry of unique prefixes, so that each entity uses another
prefix; see issue 32547 for a similar problem).

The only client of getImplementationId seems to be BASIC (ab knows the details),
where uniqueness of IDs seems indeed to be required.

Also, at least the implementation of getImplementationId in
jurt/com/sun/star/comp/loader/FactoryHelper.java 1.7 does not generate unique
IDs, as it uses hashCode (also see issue 32546).  (And, as discussed with ab,
returning an empty sequence from getImplementationId, as is probably done in
many places, is not a solution, either, as it will incur a performance hit in
the BASIC use case.)
Comment 1 Stephan Bergmann 2004-08-04 10:24:54 UTC
accepted
Comment 2 Stephan Bergmann 2004-08-04 10:26:20 UTC
corrected target milestone
Comment 3 Marcus 2017-05-20 11:29:17 UTC
Reset assigne to the default "issues@openoffice.apache.org".