Skip to content

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

@miskr-instructure

Description

@miskr-instructure

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions