Description
I first thought this is a more generic regression caused by #1807 but it turns it already happened before.
Eclipse.jdt.ls version: Tested both with latest master (6f7d39a) and (3121ad9)
JDK: OpenJDK 16.0.1+9
An example:
public class App {
public void test() {
foo();
}
public String getGreeting() {
return "foo";
}
public static void main(String[] args) {
// Here go to definition on `getGreeting` works
System.out.println(new App().getGreeting());
Function<Integer, Integer> foo = new Function<>() {
@Override
public Integer apply(Integer t) {
// Go to definition on `getGreeting` doesn't work
new App().getGreeting();
return 10;
}
};
}
}
Also visible here:
recording.mp4
(Code in question would be available here: https://github.com/crate/crate/blob/573bd2feb9052f9a83c01bd36cfb3c7485d0e9d3/server/src/main/java/io/crate/planner/operators/InsertFromValues.java#L653-L700)