Community
Participate
Working Groups
Build id: I20051018-0932 No 'compareTo' completion is offered when completing inside the 'compareTo' message sending expression below. import java.util.*; public class X <E,K extends Comparable<K>> { E[] source; F<E, K> f; void init(){ final Map<E,K> values = new HashMap<E,K>(this.source.length); new Comparator<E>(){ public int compare(E o1, E o2) { return values.get(o1).compareTo(values.get(o2)); } }; } } abstract class F<I,O> { public abstract O get(I in); }
Also, hovering on the leading receiver (values.get(o1)) reveals that the some type information got altered. It shows: 'K get(Object)' instead of 'K get(E)'. Note that this may be a different bug in codeselect.
the bug described in comment 1 is invalid. The parameter's type of the get method is declared as Object.
Fixed and tests added CompletionTests_1_5#test0261() -> test 0263()
Verified for 3.2 M4 using build I20051212-0010