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

Bug 410632

Summary: No QuickFix available on missing java method
Product: [Eclipse Project] JDT Reporter: Xavier Coulon <xcoulon>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: jarthana
Version: 4.3   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: stalebug

Description Xavier Coulon CLA 2013-06-12 12:52:37 EDT
Seems like suddenly, Eclipse Kepler (20130523-2011) cannot provide with any quickfix (except the 'rename' one) when I reference an unexisting method, as below:

{code}
return dialog.getSelectedServer();
{code}

I was expecting a quick fix that would create the missing 'getSelectedServer()' method in the dialog Class.
Comment 1 Xavier Coulon CLA 2013-06-12 16:14:42 EDT
Same problem on a Type mismatch (type returned by a method). I expected to see a quickfix assistant that would insert the type cast.
Comment 2 Jay Arthanareeswaran CLA 2013-06-13 05:04:22 EDT
I have this code and I see the expected quick fix suggested:

public class Bug410632 {
    public String foo(Dialog dialog) {
    	return dialog.getSelectedServer();
    }
}

class Dialog {
}

and I am using Kepler RC4 build. Can you try with this code and see if you still see the same behavior. There could be something about the surrounding code in your case.
Comment 3 Eclipse Genie CLA 2020-02-09 17:08:05 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.