artur-shaik / vim-javacomplete2

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

Autocomplete for self defined classes #362

Closed StrongerXi closed 5 years ago

StrongerXi commented 6 years ago

Actual behavior (Required!)

image

Expected behavior (Required!)

Autocomplete that shows class A's method 'getA()' and field 'a'.

The steps to reproduce actual behavior (Required!)

  1. Create a folder
  2. Create and write files A.java and B.java into the folder as shown.
  3. cd to the folder and start editing both files.

Environment (Required!)

StrongerXi commented 6 years ago

The autocompletion works as expected if I make the field and method of class A public; however, say I wish to have them without this modifier, how can the autocompletion still show the field and method?