I have code that generates a random byte array (4 bytes) that I am encoding Hex and then using the HexUtils hexTringToInt to convert to a number. I get frequent failures.
I think that means that it will not parse the hexString representing a negative integer. It would be nice if this "feature" were documented in the developer documents.
I am converting to another method that returns the same value as above when positive and also successfully returns a negative value when calculated.
It's using Integer.parseInt(value, 16) behind the scenes, and its behavior is consistent with that Java call. The hex value passed is greater than Integer.MAX_VALUE, thus an error.