Reputation: 116362
On some cases that Eclipse can assist me with CTRL+SPACE in order to complete a function call, I get the function call with the parameters, but the parameters names are wrong and are simply named "arg0", "arg1", ...
For example: if I make a spinner and start to call:
spinner.setOnItemClickListener(new OnItemClickListener() ...
I then get the extra :
{
@Override
public void onItemClick(final AdapterView<?> **arg0**, final View **arg1**, final int **arg2**, final long arg3)
{
}
});
While the API of Android has clear names for those (as written here):
onItemClick(AdapterView<?> parent, View view, int position, long id)
Why does it occur, and what can I do to fix it? Btw, I have the latest version of Eclipse, JDK, Android adt & sdk (even occurred on version 20 preview 3).
Upvotes: 2
Views: 403
Reputation: 31466
Eclipse can't work out the arguments because it can't find the source or javadoc attachments.
Make sure your source is attached.
Try the following solution?
Upvotes: 2