Bug 574902 - [content assist] No content assist in second part of the condition
Summary: [content assist] No content assist in second part of the condition
Status: CLOSED DUPLICATE of bug 574823
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.20   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: 574913
  Show dependency tree
 
Reported: 2021-07-17 11:46 EDT by Andrey Loskutov CLA
Modified: 2021-07-24 03:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2021-07-17 11:46:12 EDT
Regression in 4.20, also still on master / I20210716-1800

Trying to use content assist in the second part of the if/while condition doesn't work, the content assist is empty.

Same works on the first pert of the condition.

import java.util.ArrayList;
public class ContentAssistBug2 {
	public static void main(String[] args) {
		ArrayList<?> list = new ArrayList<>();
		if(!list.isEmpty() /*&& list.|*/) { // no content assist
			list.remove(0);
		}
		
		while(!list.isEmpty() /*&& list.|*/) { // no content assist
			list.remove(0);
		}
	}
}
Comment 1 Snjezana Peco CLA 2021-07-23 22:19:24 EDT
I can reproduce the issue neither on master nor Eclipse I20210723-1800.
It is reproducible on Eclipse I20210721-1800.
Comment 2 Andrey Loskutov CLA 2021-07-24 03:28:05 EDT
Fixed via bug 574823 changes.

*** This bug has been marked as a duplicate of bug 574823 ***