Community
Participate
Working Groups
Suppose you have: package a; public class A { public static enum MyEnum { E1, E2; } public static int CONSTANT = 1; public static class MyNestedClass { } } and: package b; import a.A; public class B extends A { } and: package c; import a.A; public class C { public static void main(String[] args) { B.| <= invoke code assist here } } If you invoke code assist at | you'll find that: - CONSTANT is proposed - MyEnum and MyNestedClass are not proposed I know that this kind of indirect access should be avoided, however B.MyEnum and B.MyNestedClass are valid Java code, just like B.CONSTANT. So, I would let the user decide whether he/she wants to write dangerous code and leave the "Indirect access to static member" Code Style option in "Errors/Warnings" preferences page do its job in case.
Will investigate, time permitting.
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.
Still applies to Eclipse 2019-12.
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. If you have further information on the current state of the bug, please add it. 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.
Still applies to Eclipse 2021-12.