| Summary: | [content assist] does not work for overriding a method if arg type is mentioned | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Noopur Gupta <noopur_gupta> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 4.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
*** This bug has been marked as a duplicate of bug 308217 *** |
public class C { void foo(XYZ1 x) {} void foo(XYZ1 x, int i) {} void foo(int i) {} } class XYZ1 {} class XYZ2 {} class SubC extends C { fo } 1. In SubC, press Ctrl+Space after "fo". 2. Type "o". 3. Type "(". This will give ")" also if auto-close parenthesis is enabled. 4. Type "X". 5. Select foo(XYZ1 x, int i) from the proposals pop-up using down arrow key. 6. Press Enter. It does not produce the override method code. - Encountered the issue while trying to override #visit(InfixExpression node) method of org.eclipse.jdt.internal.corext.dom.GenericVisitor in a sub-class. Type "visit". Invoke content assist. Instead of using up/down arrow keys to select the required method (which takes time), type "(" and "I". Select the required method now and press Enter. We do not get the code to override #visit(InfixExpression node).