eclipse-jdtls / eclipse.jdt.ls

Java language server
1.77k stars 397 forks source link

Call Heirachy is wrong for interface methods #2771

Closed gayanper closed 1 year ago

gayanper commented 1 year ago

Take the following code

package com.example.demo;

import java.util.Optional;

public interface CallHError {
  Optional<String> name();
}

Now invoke call hierarchy on method name. I get the following results

image

But if I change the code as below

package com.example.demo;

import java.util.Optional;

public interface CallHError {
  public Optional<String> name();
}
gayanper commented 1 year ago

This is not a upstream issue, in JDT core it works as expected.

TomKrcmar2 commented 5 days ago

I am still experiencing this issue on 1.39.0, but for Callees.