jdee icon indicating copy to clipboard operation
jdee copied to clipboard

Completion doesn't suggest members with no modifier

Open nitishch opened this issue 8 years ago • 4 comments

Say two classes A, B are in the same package. When I'm in file B.java, I should be able to access members from A that have no access modifier specified.

In such case, completion only suggests public members of A.

nitishch avatar Dec 07 '16 11:12 nitishch

Are the classes compiled?

pwojnowski avatar Dec 07 '16 11:12 pwojnowski

Yes. Does it work for the described scenario in your system?

nitishch avatar Dec 07 '16 13:12 nitishch

IIUC the scenario is as follows:

// Another.java:
package poligon;
public class Another {
    int sum(int a, int b) {
        return a + b;
    }
}
// Poligon.java:
package poligon;
public class Poligon {
    public static void main(String[] args) {
        new Poligon().action();
    }
    void action() {
        Another a = new Another();
        System.out.println(a.sum(2, 3));
    }
}

In "action" method, "sum" is shown in the completion list for "a.". Is this the same case?

pwojnowski avatar Dec 24 '16 23:12 pwojnowski

Yes. For some reason, this doesn't work in my system. I don't have access to it now. Once I do, I'll see more about this issue.

nitishch avatar Dec 29 '16 15:12 nitishch