This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I created an inner class public class MyClass private enum Scenario { MOBILE("MOBILE_SERVICE", true); private boolean hasBroadband; private Object offer; Scenario(Object offer, boolean hasBroadband) { this.offer = offer; this.hasBroadband = hasBroadband; } public boolean hasBroadband() { return hasBroadband; } public Object getOffer() { return offer; } } public void method() { new Scenario(). } } When CTRL SPACE (CodeCompletion) on 'new Scenario().' it interestingly only shows the field 'hasBroadband' although it is private. If I rename the field 'hasBroadband' I get both the method and the field in the codecompletion list the field
reproducible Here is example w/o initializing enum public class MyClass { class Inner { private int x; private int x() { return x; } } public void method() { new Inner().x(); } }
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/c376a4dd0cbb