Description
Looking at the hashCode() implementation of Bytecode.Binding, it can produce hash collisions and therefore should be improved.
This can be reproduced with:
System.out.println("first = " + new Bytecode.Binding("3", "7").hashCode()); System.out.println("second = " + new Bytecode.Binding("7", "3").hashCode()); System.out.println("equal? = " + new Bytecode.Binding("3", "7").equals(new Bytecode.Binding("7", "3")));
which will print:
first = 106
second = 106
equal? = false
Attachments
Issue Links
- links to