Community
Participate
Working Groups
I20050610-1757 (3.1RC2) ContentAssist should propose methods of intersection types. In the example below, content assist does not propose compareTo(..) after 'combine(s, i).', although the compiler accepts it. public class Try { void test(String s, Integer i) { combine(s, i).compareTo(null); } <T> T combine(T t1, T t2) { return Math.random() > 0 ? t1 : t2; } }
Reproduced in latest.
*** Bug 141281 has been marked as a duplicate of this bug. ***
*** Bug 162772 has been marked as a duplicate of this bug. ***
Created attachment 53912 [details] Proposed fix
Released for 3.3 M4. Test added CompletionTests_1_5#test0295() -> test0296()
Verified for 3.3M4 with I20061211-1119