Community
Participate
Working Groups
I20060711-1100 In the example below, invoke content assist in the call to constructor of ModifierFilter. Expected: proposals for constructor call and anonymous inner type Was: proposals for PUBLIC_FILTER and SETTINGS_LAST_USED_FILTERS. I found no way to get the parameter hints for the constructor call (or the anonymous proposal). Interestingly, this works fine as soon as I remove the declaration of the abstract method getName(), or move the declaration to after PUBLIC_FILTER. abstract class MatchFilter { private static final String SETTINGS_LAST_USED_FILTERS= "filters_last_used"; // works if next line is commented out or moved to after PUBLIC_FILTER public abstract String getName(); // content assist at new ModifierFilter(|): private static final MatchFilter PUBLIC_FILTER= new ModifierFilter(); } class ModifierFilter extends MatchFilter { private final String fName; public ModifierFilter(String name) { fName= name; } public String getName() { return fName; } }
Problem seems to be with jdt-core - we do not get any ctor proposals when there is an abstract method before the field declaration.
Moving to core.
Maybe related to bug 141256?
*** Bug 141256 has been marked as a duplicate of this bug. ***
Created attachment 72595 [details] Proposed fix
Released for 3.4M1. Test added: CompletionParserTest2#test0172() K_METHOD_DELIMITER wasn't removed from the stack when the method is abstract
Verified for 3.4M1 using build I20070802-0800.