From 46f7a45f12019a13f1bce658c0f07a48421545e3 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Fri, 15 Aug 2014 10:44:22 -0600 Subject: [PATCH] add hashCode and equals methods to java/util/Map Granted, this is weird - but this is what openjdk does. Therefore, some code that is compiled for openjdk (say, protobufs) will treat calls to Map.hashCode as interface calls instead of virtual calls, as they would have previously been under avian's classpath. Also note that this error caused avian to abort in findInterfaceMethod rather than throw an AbstractMethodError or somesuch - but that's a problem for another day. --- classpath/java/util/Map.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/util/Map.java b/classpath/java/util/Map.java index a5bfbc38d8..b79a1835f9 100644 --- a/classpath/java/util/Map.java +++ b/classpath/java/util/Map.java @@ -35,6 +35,10 @@ public interface Map { public Collection values(); + public boolean equals(Object other); + + public int hashCode(); + public interface Entry { public K getKey();