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

Go to definition does not work with method references

Open mrcjkb opened this issue 3 years ago • 2 comments

Environment: NeoVim 0.5 Platform: Arch Linux

I noticed that go-to-definition, go-to-implementation, hover, etc. do not work on method references. In this example,

List.of("1", "2", "3")
    .map(Integer::valueOf)
    ...

the respective actions are applied to java.util.Function.apply() (the parameter of map) instead of Integer.valueOf().

This may be related to #1461.

mrcjkb avatar Jun 07 '21 16:06 mrcjkb

Update: Find references also excludes method references.

mrcjkb avatar Jun 14 '21 15:06 mrcjkb

May be related to #1780

mrcjkb avatar Aug 09 '21 17:08 mrcjkb

seems to work in the newest version 1.19.0. @mrcjkb could you please help verify it?

CsCherrYY avatar Feb 13 '23 06:02 CsCherrYY

seems to work in the newest version 1.19.0. @mrcjkb could you please help verify it?

I haven't worked with Java in a while, but I can give it a go this weekend :smile:

mrcjkb avatar Feb 14 '23 06:02 mrcjkb

Seems to be working for me too.

mrcjkb avatar Feb 15 '23 18:02 mrcjkb