Community
Participate
Working Groups
I am trying to compile the following method public static <K,V> Set<K> inverseImage(Map<K,V> inMap, V inVal) { Set<Map<K,V>.Entry<K,V>> entrySet = inMap.entrySet(); Set<K> resultSet = new TreeSet<K>(); //irrelevant stuff omitted return resultSet; } It looks ok to me. The J2SE 5.0 RC compile will accept it without complaining. But Eclipse 3.0 + Cheetah 0.6 gives the following error: Type mismatch: cannot convert from Set<Map<K,V>.Entry<K,V>> to Set<Map<K,V>.Entry<K,V>> MapUtil.java polaris/src/edu/upenn/polaris/support line 20 (the line 20 is the line where 'entrySet' is declared).
*** This bug has been marked as a duplicate of 72644 ***