From f849c070f2a2581ec114b4030b6ed8528a16b3b1 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 29 Jan 2015 19:10:27 +0400 Subject: [PATCH] Fix invalid Long.hashCode() --- .../src/main/java/org/teavm/classlib/java/lang/TLong.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {