I have the following override of method on hashCode in AbstractORM class:
var _id = Random().nextLong()
override fun getId() = _id
I'm not sure about how to solve your problem, but I'll try to explain why are you getting this exception.
In Java 8 a new static method was added to a Long class:
public static int hashCode(long value)
And since then hashCode() method looks like this:
public int hashCode() {
return hashCode(this.value); // call Long.hashCode() static method
}
So it seems that you have some issues with Java version.