Bug 578064

Summary: [content assist] suggest casted completions for chained expressions when proceeding instanceof check in condition expression
Product: [Eclipse Project] JDT Reporter: Gayan Perera <gayanper>
Component: CoreAssignee: Gayan Perera <gayanper>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.22   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

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.