Bug 495415 - Bad attempt to compute absolute value of signed 32-bit hashcode
Summary: Bad attempt to compute absolute value of signed 32-bit hashcode
Status: NEW
Alias: None
Product: Tracecompass
Classification: Tools
Component: TMF (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-03 10:55 EDT by Matthew Khouzam CLA
Modified: 2016-06-04 00:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Khouzam CLA 2016-06-03 10:55:33 EDT
Hashcodes should not be Math.abs(int) as they can be Integer.MIN_VALUE.

This is a problem as

Math.abs(Integer.MIN_VALUE)==Integer.MIN_VALUE
Comment 1 Eclipse Genie CLA 2016-06-04 00:00:39 EDT
New Gerrit change created: https://git.eclipse.org/r/74533