Bug 445709 - [content assist] Method argument guessing misses lambda parameter variables
Summary: [content assist] Method argument guessing misses lambda parameter variables
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2014-10-01 14:41 EDT by Markus Keller CLA
Modified: 2019-04-15 03:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2014-10-01 14:41:32 EDT
Method argument guessing misses lambda parameter variables:

import java.nio.file.*;

public class Snippet {
    void foo(Path dir) {
        Files.list(dir).forEach(f -> {
            Files.copy  // <- content assist should guess "Path f" as argument
        });
    }
}

In all method proposals, it only offers "dir" as guess for paths. Should also offer "f" (as best guess, since its declaration is closest).
Comment 1 Eclipse Genie CLA 2019-04-14 15:53:39 EDT
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.

If you have further information on the current state of the bug, please add it. 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.
Comment 2 Dani Megert CLA 2019-04-15 03:59:50 EDT
Works for me using 4.12 M1.