Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When a negative long (e.g. -1L) is converted to hex string (ffff ffff ffff ffff), Long.parseLong treats it as a positive number that overflows, and the function throws NumberFormatException.
The fix is to use java.math.BigInteger to parse it.