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

Bug 570988

Summary: No completions for inner class type variables inside DebugShell
Product: [Eclipse Project] JDT Reporter: Gayan Perera <gayanper>
Component: DebugAssignee: Gayan Perera <gayanper>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, sarika.sinha
Version: 4.19   
Target Milestone: 4.19 M3   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=571066
Whiteboard:
Bug Depends on: 571066    
Bug Blocks: 571213    

Description Gayan Perera CLA 2021-02-06 05:43:48 EST
package app;

import java.util.Map;
import java.util.Map.Entry;

public class CompletionIssues {
	public static void main(String[] args) {
		print(Map.entry("Name", 12L));
	}
	
	private static void print(Entry<String, Long> entry) {
		System.out.println(entry.toString());
	}
}

Try to add a debug point at System.out statement and try to list the entry. members inside the DebugShell. Unless you cast the entry to Map.Entry<String, Long> you will not get any completions.
Comment 1 Sarika Sinha CLA 2021-02-10 14:11:52 EST
Fixed via Bug 571066.
Comment 2 Sarika Sinha CLA 2021-02-15 12:04:11 EST
I20210214-1800