"clebert.suconic(a)jboss.com" wrote : There is an issue on the SimpleString
hashCode calculation.
|
|
| This loop:
|
| public int hashCode()
| | {
| | if (hash == 0)
| | {
| | for (int i = 0; i < data.length; i++)
| | {
| | hash = 31 * hash + data;
| | }
| | }
| |
| | return hash;
| | }
| |
| |
|
|
| Is eventually overflowing MaxInt, and that's considered an Exception in C#.
|
| I'm looking to how hashes are calculated in mono, and I will try using the same
function.
|
|
|
It should be the same to wrap it back to -MAX_INTEGER if .net doesn't do that
automatically
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206441#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...