Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.1, 2.0.2-alpha
-
None
-
Reviewed
Description
In the following code from SortedMapWritable, #putAll() doesn't add key/value classes to the class-id maps.
@Override public Writable put(WritableComparable key, Writable value) { addToMap(key.getClass()); addToMap(value.getClass()); return instance.put(key, value); } @Override public void putAll(Map<? extends WritableComparable, ? extends Writable> t){ for (Map.Entry<? extends WritableComparable, ? extends Writable> e: t.entrySet()) { instance.put(e.getKey(), e.getValue()); } }
Attachments
Attachments
Issue Links
- is blocked by
-
HADOOP-9124 SortedMapWritable violates contract of Map interface for equals() and hashCode()
- Closed