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.
This commit is contained in:
Joshua Warner 2014-08-15 10:44:22 -06:00
parent 34b7f8a17e
commit 46f7a45f12

View File

@ -35,6 +35,10 @@ public interface Map<K, V> {
public Collection<V> values();
public boolean equals(Object other);
public int hashCode();
public interface Entry<K, V> {
public K getKey();