MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
942 stars 132 forks source link

Implement static hashcode functions for scalar types #791

Closed clydebarrow closed 1 month ago

clydebarrow commented 1 month ago

It seems recent Kotlin versions are generating code that relies on the Java 1.8 static hashCode(x) functions which are not present in the libcore implementation, which results in "method not found" errors e.g. when using a data class with double members in a hashed collection.

This PR adds those functions for Double, Float, Long, Integer and Short.