Community
Participate
Working Groups
Build id: I20100802-1800. For the following case, the quickfix offered is "change visibility of m() to public", which is wrong: package p0; class A { public class M { public M() { System.out.println("Invoked M()"); } } } ------------------------------------------- package p0; public class B { public static A m() { return new A(); } } ------------------------------------------- package p1; import p0.B; class C { public static void main(String[] args) { B.m().new M(); // error at B.m() -> The type A is not visible } } The correct quickfix should be "change visibility of A to public". This also happens if we're accessing a method from A, or a field, instead of the constructor for M as shown above.
See also fixed bug 262511.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.