microsoft / microsoft/vscode-java-debug
Cannot evaluate the instance of anonymous class
Đang mở
@testforstephen đang làm issue này rồi.
Từ ngày 16/5/2022.
ai-triaged
bug
evaluation
- Ngôn ngữ chính
- TypeScript
- Star
- 591
- Fork
- 429
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 19
Mô tả
Hi, I have a similar problem with internal field initializer.
import java.util.*;
public class RomanToInteger {
public int romanToInt(String s) {
var ri = new HashMap<Character,Integer>() {{
put('I', 1);
}};
var c = ri.get(s.charAt(0)); // ri returns cannot evaluate
return 0;
}
}

Environment
Operating System: Win 11
JDK version: openjdk version "11.0.12" 2021-07-20
Java extension version: Language Support for Java(TM) by Red Hat 0.40.1
Java Debugger extension version: 0.40.1
Visual Studio Code Version: 1.67.1
Commit: da15b6fd3ef856477bf6f4fb29ba1b7af717770d
Originally posted by @martinkunc in https://github.com/microsoft/vscode-java-debug/issues/754#issuecomment-1126981962
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.