Simple usage of java.lang.String::hashCode()
in Java and Objective-C
translated using j2objc.
Apparently the two hash codes are not equal, for the same string.
git clone https://github.com/clns/j2objc-hash-test.git
cd j2objc-hash-test
make
This will output something like this:
Java response:
"HashTest".hashCode() = 212838112
OSX response:
"HashTest".hashCode() = -2090220244
Note: To speed up the process place the j2objc dist directory inside, otherwise it needs to be downloaded.
This was tested on OS X 10.10.