Bug in NetRexx hashCode() math using char[] with length > 14 all cells = max char?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in NetRexx hashCode() math using char[] with length > 14 all cells = max char?

Jason Martin






if using max charif using max char

Passhash * 7(((int) (chars[i])) * 2))((int) (chars[(chars.length - i) - 1]))hashexception
0013107265536196608
11376256131072655361572864
2110100481310726553611206656
3784465921310726553678643200
455050240013107265536550699008
5<a href="tel:3854893056" value="+13854893056" target="_blank">385489305613107265536<a href="tel:3855089664" value="+13855089664" target="_blank">3855089664Overflow
6269856276481310726553626985824256Overflow









int.max<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Bug in NetRexx hashCode() math using char[] with length > 14 all cells = max char?

rvjansen
Hi Jason,

I’ll enter a ticket so we can take a look at it. Thanks!

best regards,

René.

On 31 aug. 2015, at 22:26, Jason Martin <[hidden email]> wrote:







if using max charif using max char

Passhash * 7(((int) (chars[i])) * 2))((int) (chars[(chars.length - i) - 1]))hashexception
0013107265536196608
11376256131072655361572864
2110100481310726553611206656
3784465921310726553678643200
455050240013107265536550699008
5<a href="tel:3854893056" value="+13854893056" target="_blank" class="">385489305613107265536<a href="tel:3855089664" value="+13855089664" target="_blank" class="">3855089664Overflow
6269856276481310726553626985824256Overflow









int.max<a href="tel:2147483647" value="+12147483647" target="_blank" class="">2147483647
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/