Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 481847

Summary: [override method] No stub generated when argument is specified
Product: [Eclipse Project] JDT Reporter: Johannes Dorn <johannes.dorn>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, noopur_gupta
Version: 4.5.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Johannes Dorn CLA 2015-11-10 09:23:41 EST
Scenario:

import org.eclipse.jdt.core.dom.ASTVisitor;

 class MyAstVisitor extends AstVisitor {

 visit<ctrl+space here>

 }

i trigger content assist on the text "visit" which proposes all possible visit methods.

I then type in "(array". Now only those visit methods are proposed that have a first argument of type Array*. (e.g. visit(ArrayAccess node)). A closing parenthesis is automatically inserted.

If i then press enter to insert an overriding method stub, the only thing happening is that the cursor jumps to after the closing parenthesis. The proposal window is still open.


Code Recommenders is disabled.
Comment 1 Jay Arthanareeswaran CLA 2015-11-17 01:26:35 EST
Moving to JDT/Text for investigation.
Comment 2 Noopur Gupta CLA 2015-11-17 01:30:18 EST

*** This bug has been marked as a duplicate of bug 308217 ***