diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TLong.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TLong.java index c0ed2b3b6..5c3f71e8c 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TLong.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TLong.java @@ -199,8 +199,12 @@ public class TLong extends TNumber implements TComparable { } @Override + public int hashCode() { + return hashCode(value); + } + @GeneratedBy(LongNativeGenerator.class) - public native int hashCode(); + private static native int hashCode(long value); @Override public boolean equals(Object other) {