Summary: | 3.1M3 AbstractMethodError for generic Map | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | mike andrews <mikea> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
mike andrews
2004-12-08 22:33:34 EST
Verified that the following class runs without an AbstractMethodError using HEAD: import java.io.Serializable; import java.util.Collection; import java.util.Map; import java.util.Set; public class X<KEY extends Serializable, VALUE extends Serializable> implements Map<KEY, VALUE> { public void clear() { } public boolean containsKey(Object key) { return false; } public boolean containsValue(Object value) { return false; } public Set<Entry<KEY, VALUE>> entrySet() { return null; } public VALUE get(Object key) { return null; } public boolean isEmpty() { return false; } public Set<KEY> keySet() { return null; } public VALUE put(KEY key, VALUE value) { return null; } public void putAll(Map< ? extends KEY, ? extends VALUE> t) { } public synchronized VALUE remove(Object key) { return null; } public int size() { return 0; } public Collection<VALUE> values() { return null; } public static void main(String[] args) { new X().remove("key"); } } |