Bug 513939 - Content Assist inside switch block times out
Summary: Content Assist inside switch block times out
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.7   Edit
Hardware: Macintosh Mac OS X
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact: Srikanth Sankaran CLA
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-20 14:23 EDT by Alex Boyko CLA
Modified: 2023-06-26 20:51 EDT (History)
2 users (show)

See Also:


Attachments
no content assist in the case section (137.95 KB, image/png)
2020-08-01 04:31 EDT, Gao Hao CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Boyko CLA 2017-03-20 14:23:33 EDT
Content Assist times out/hangs inside the switch block inside a lambda. Note that it's different from https://bugs.eclipse.org/bugs/show_bug.cgi?id=495674 - it's not inside "case" block. Suppose there are no "case" blocks yet. The "switch" is present and CA is invoked at ^

public class Test {
    public static void main(String... args) {
        Map<String, String> map = new HashMap<>();
        map.put("1", "ONE");
        map.put("2", "TWO");
        map.forEach((k, v) -> {
            switch (k) {
            ^
            }
        });
    }
}

Hangs in STS. Times out in plain Eclipse 4.6.3
Comment 1 Alex Boyko CLA 2017-03-20 14:34:23 EDT
Hangs in AssistParser#parseBlockStatements(...)
Comment 2 Eclipse Genie CLA 2020-08-01 02:36:09 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 3 Gao Hao CLA 2020-08-01 04:31:47 EDT
Created attachment 283777 [details]
no content assist in the case section

Seems to be solved. But has another problem.
Comment 4 Eclipse Genie CLA 2022-10-19 01:52:08 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.