Community
Participate
Working Groups
Using following test case, Javac 1.5.0-beta2 complains "GenericMap.java:7: test.GenericMap is not abstract and does not override abstract method putAll(java.util.Map<? extends java.lang.String,? extends V>) in java.util.Map public class GenericMap<V> implements Map<String, V> {" while Eclipse accepts the class. package test; import java.util.Collection; import java.util.Map; import java.util.Set; public class GenericMap<V> implements Map<String, V> { private Map<String, V> backingMap; public int size() { return 0; } public boolean isEmpty() { return false; } public boolean containsKey(Object key) { return false; } public boolean containsValue(Object value) { return false; } public V get(Object key) { return null; } public V put(String key, V value) { return null; } public V remove(Object key) { return null; } public void clear() { } public Set<String> keySet() { return null; } public Collection<V> values() { return null; } public void putAll(Map<String, ? extends V> t) { } public Set<Map.Entry<String, V>> entrySet() { return this.backingMap.entrySet(); } }
See bug 72644
See GenericType test 298
Verified in 200412140800