Issue 32550 - Ensure unique IDs in
Summary: Ensure unique IDs in
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: 680m49
Hardware: All All
: P4 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2004-08-04 10:24 UTC by Stephan Bergmann
Modified: 2017-05-20 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
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/ 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
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 "".