redhat-developer / redhat-developer/vscode-java

Method-reference style implementations of an interface are not found by "Find All Implementations"

Open
#4,140 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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);
  }
}
Image

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Java snippet and checking the Find All Implementations result and code lens in the reported VS Code and Red Hat Java extension versions. Trace the implementation/reference handling for method-reference style lambdas; done means the interface implementation is found and the corresponding code lens is no longer shown as zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.