Opened 9 years ago

Closed 9 years ago

#1901 closed defect (fixed)

Get rid of code that use System.identityHashCode() and assume that it return unique values

Reported by: Nicklas Nordborg Owned by: everyone
Priority: critical Milestone: BASE 3.4
Component: core Version:
Keywords: Cc:

Description

For background information see #1900.

There are a few other places (mainly in the query api) that also uses System.identityHashCode() for generating *unique* values. I guess there can be issues in those places as well.

Change History (3)

comment:1 by Nicklas Nordborg, 9 years ago

(In [6665]) References #1900 and #1901.

This should hopefully fix the ID issue for the job queue.

comment:2 by Nicklas Nordborg, 9 years ago

(In [6666]) References #1901: Get rid of code that use System.identityHashCode() and assume that it return unique values

Added DbControl.uniqueRandom() which can be used to generate a random string that is unique within the transaction.

This should take care of the query api and the other remaining places.

comment:3 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.