redhat-developer / redhat-developer/vscode-java
Method-reference style implementations of an interface are not found by "Find All Implementations"
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
As the title says, "Find All References" does not enumerate method reference style lambdas as implementations.
Minimal repro (see attached image for "0 implementations" code lens).
package com.example;
public class Repro {
public interface MyInterface {
boolean call(int arg1);
}
private boolean call(int arg1) {
return arg1 > 0;
}
public boolean run() {
MyInterface myInterface = this::call;
return myInterface.call(5);
}
}
VSC:
Version: 1.102.3 (Universal)
Commit: 488a1f239235055e34e673291fb8d8c810886f81
Date: 2025-07-29T03:00:23.339Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.6.0
Redhat extension:
Identifier
redhat.java
Version
1.44.0
Last Updated
2025-07-31, 17:57:17
JVM:
21.0.8 (arm64) "Amazon.com Inc." - "Amazon Corretto 21" /Library/Java/JavaVirtualMachines/amazon-corretto-21.jdk/Contents/Home
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先重现 Java 代码片段,并在报告中所述的 VS Code 和 Red Hat Java 扩展版本中检查 Find All Implementations 的结果和 code lens。跟踪对方法引用形式 lambda 的实现/引用处理;当找到接口实现且相应的 code lens 不再显示为零时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100