artur-shaik / vim-javacomplete2

DEPRECATED in favor of jc.nvim
Vim License
973 stars 83 forks source link

Static members not listed when autocompleting from within same class #414

Closed Qix- closed 5 years ago

Qix- commented 5 years ago

Actual behavior

Static method does not get suggested when inside same class:

image

Expected behavior

Static method is listed.

The steps to reproduce actual behavior (Required!)

  1. Start with this code:
class Foo {
    public static void main(String[] args) {
        System.out.println("Hello from main()");
    }

    private static void sayHi() {
        System.out.println("Hello from sayHi()");
    }
}
  1. Create a new line between 3 and 4
  2. Type Foo. and observe.

Environment (Required!)

Q&A

Qix- commented 5 years ago

It should be noted that private non-static members work just fine.

EDIT: Seems to do the same thing with public static members as well; the visibility of the static member doesn't seem to matter.

Qix- commented 5 years ago

Hey, thanks @artur-shaik ❤️

artur-shaik commented 5 years ago

You are welcome!

On 01-03 (02:19), Qix wrote:

Hey, thanks [1]@artur-shaik ❤️

— You are receiving this because you were mentioned. Reply to this email directly, [2]view it on GitHub, or [3]mute the thread.

References

Visible links

  1. https://github.com/artur-shaik
  2. https://github.com/artur-shaik/vim-javacomplete2/issues/414#issuecomment-451103386
  3. https://github.com/notifications/unsubscribe-auth/AEozuz5ZMSID_iDf56WgtJqvY-mMBtUcks5u_dkbgaJpZM4ZmFK0

-- Best regards, Artur Shaikhullin