Bug 578064 - [content assist] suggest casted completions for chained expressions when proceeding instanceof check in condition expression
Summary: [content assist] suggest casted completions for chained expressions when proc...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.22   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Gayan Perera CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-05 15:25 EST by Gayan Perera CLA
Modified: 2023-12-27 15:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gayan Perera CLA 2022-01-05 15:25:40 EST
Code:

public void foo(Entry<String, Object> data) {
   if((data.value() instanceof List) && data.value().|) {
   }
}

should suggest members in java.util.List class and selecting a member should rewrite the expression as 

((List)  data.value()).<selected member>
Comment 1 Eclipse Genie CLA 2023-12-27 15:42:50 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.