-
Notifications
You must be signed in to change notification settings - Fork 406
Open
Labels
Description
Problem: HashMap nodes are unexpandable when a Map.Entry local variable exists (screenshot attached)
Sample code
package com.tech.maven;
import java.util.HashMap;
import java.util.Map;
public class Bug {
public static void main(String[] args) {
Map<String, String> m = new HashMap<>();
m.put("employees", "500");
m.put("department", "IT");
// Put your breakpoint on the line below ←←←←←
System.out.println("breakpoint here");
// After you stop here, look at "m" in VARIABLES or WATCH → m.entrySet()
// You will see only one entry (or unexpandable nodes) if the bug is still present
}
}
VScode & Extensions Environment
JavaSE 17 (Temurin)