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

Bug 516781

Summary: Completion doesn't work with broken code preceding the invocation point
Product: [Eclipse Project] JDT Reporter: Jay Arthanareeswaran <jarthana>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Jay Arthanareeswaran CLA 2017-05-17 04:06:12 EDT
Example brought in from bug 515274, comment #18:

import java.util.function.Function;

    public enum Foo {
	BAR((x) -> {	
            x. // works fine here
            return | // invoke content assist here
        });
	
        Foo(Function<String, String> func) { }
    }

No completions are offered here. However, in a similar code with field declaration (in place of enum constant), completion is working as expected.
Comment 1 Sasikanth Bharadwaj CLA 2017-05-18 04:37:21 EDT
It's bug 492947 comment 18
Comment 2 Eclipse Genie CLA 2019-12-31 15:20:43 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.

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.