I'm a happy user of eclipse mars for some time. But there is one thing that bugs me a bit:
When i start eclipse mars in the morning and start typing for example:
list.add
(list is an arraylist)
Then the parameters are displayed as arg0 and arg1. This only happens the first time. Cause when i type "list.add" again the parameter names are displayed, so no arg0 and arg1 anymore.
But when i go to another class and use it by typing hash.put the parameters are arg0 again. But when i try it a second time the parameters names are correctly displayed, no more arg0 anymore.
I do have a jdk (1.8 60) with source configured and selected (installed jres and for the project).
First try, you'll get arg0:
Second try the param names:
Solved:
(thanks to francesco foresti for pointing me to the right direction)
Found it! Right click "jre system library", properties, select "execution env" radiobutton, click "environment" button , select "javase-18" and enable the checkbox for jdk in the "compatible jre" list. Now the rt.jar has source attachment instead of only javadoc attachment. And it keeps it even after a maven "update project".