hilo generator can generate negative numbers because of arithmetic overflow
---------------------------------------------------------------------------
Key: HHH-2397
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2397
Project: Hibernate3
Type: Bug
Components: core
Reporter: Steve Ebersole
Assigned to: Steve Ebersole
Fix For: 3.2.3
org.hibernate.id.TableHiLoGenerator#generate can potentially generate negative numbers
because of the possibility of overflow due to the handling of the "clock over"
multiplication using int multiplication. The solution is to force one of the operands to
type long.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira