eclipse.jdt.ls icon indicating copy to clipboard operation
eclipse.jdt.ls copied to clipboard

supertypes returns empty list

Open nalbion opened this issue 1 year ago • 2 comments

I'm able to get typeHierarchy/subtypes returning a subclass, but typeHierarchy/supertypes returns an empty list for package_a.Foo:

 package package_a;

public interface FooInterface {
    void foo(String bar);
}

public class BaseFoo implements FooInterface {
    public void foo(String bar) {
        System.out.println("BaseFoo " + bar);
    }
}

public class Foo extends BaseFoo {
	public Foo() {
		System.out.println("Foo() in package_a");	
	}

	public Foo(String bar) {
		System.out.println("Foo " + bar);
	}

	public void foo(String bar) {
		System.out.println("Foo " + bar);
	}
}

nalbion avatar Jun 27 '24 05:06 nalbion

typeHierarchy/subtypes is also returning empty, even though textDocument/prepareTypeHierarchy works

nalbion avatar Jul 05 '24 03:07 nalbion

Do you have the exact protocol request/responses when you perform these actions ? Are there any errors emitted in the logs ?

rgrunber avatar Jul 26 '24 18:07 rgrunber