Bug 562690 - [1.8][assist] ContentAssist not working on field init with lambda
Summary: [1.8][assist] ContentAssist not working on field init with lambda
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-01 09:36 EDT by Frank Benoit CLA
Modified: 2023-06-09 07:07 EDT (History)
2 users (show)

See Also:


Attachments
Failing case (4.05 KB, image/png)
2020-05-01 09:36 EDT, Frank Benoit CLA
no flags Details
good case (10.12 KB, image/png)
2020-05-01 09:37 EDT, Frank Benoit CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Benoit CLA 2020-05-01 09:36:53 EDT
Created attachment 282652 [details]
Failing case

Given this class:

public class Library {
    
    private Consumer<RecurseBuilder> m1 = b -> b./*1*/builder( null );
    
    class RecurseBuilder{
        RecurseBuilder builder(Consumer<RecurseBuilder> cons) {
            Consumer<RecurseBuilder> m2 = b -> b./*2*/builder( null );
            return this;
        }
    }   
}

Problem at cursor before the comment /*1*/, no proposal. But There should be the same as if you put the cursor before /*2*/ (here it works).
Comment 1 Frank Benoit CLA 2020-05-01 09:37:22 EDT
Created attachment 282653 [details]
good case
Comment 2 Stephan Herrmann CLA 2020-05-01 12:17:25 EDT
That's an interesting difference.

We are aware that completion in the presence of lambdas is not fully working, but here we don't see an immediate reason, why smth that works in one situation doesn't work in another context, too.
Comment 3 Stephan Herrmann CLA 2021-06-15 10:21:02 EDT
@Gayan, do you want to check what's the status of this bug after recent fixes?
Comment 4 Gayan Perera CLA 2021-06-15 11:34:46 EDT
@Stephan sure i can check.
Comment 5 Eclipse Genie CLA 2023-06-09 07:07:02 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.