Community
Participate
Working Groups
Everytime I have to put a call to a generics-enabled static methods, code completion stops to work after the method call. Generics syntax which broke the completion Class.<T>staticMethod(params); Pseudo-example: EnumSet.<MyType>of(MyType.VALUE1, MyType.VALUE2); Real-example: EnumSet.<Mode>of(Mode.BINDING, Mode.READABLE, Mode.WRITABLE); Since this happens quite often for me (I'm very fond of generics enumset, they are sooooo handy & easy to use instead of the old error-prone untyped bitsets), it's quite a nuisance. Anyone can confirm this? P.s. thanks for this life-saving & deadline-saving tool! :D
Minimal test case provided: public class IBreakCodeCompletion { public enum MyEnum { A }; public static void breakCodeCompletion() { // here code completion works EnumSet.<MyEnum>of(MyEnum.A); // here code completion DOESN'T work anymore } }
+1 for 3.1.1
Created attachment 24524 [details] Proposed patch K_SELECTOR_QUALIFIER and K_SELECTOR_INVOCATION_TYPE are not removed form elementStack when the method is generic.
Fix released and test added GenericsCompletionParserTest#test0204()
(In reply to comment #4) > Fix released and test added > GenericsCompletionParserTest#test0204() Thanks for the quick fix of this small (but annoying) bug. Can't wait to have 3.1.1 in my dirty hands :P
Fix released and test added in HEAD
Verified in 3.2M1 (I20050808-2000)
Verified for 3.1.1 using build M20050923-1430.