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.
While coding in a static block or 'instance initializer block', NetBeans does not list the local variables or static variables available in the Class in the code completion popup. Please Fix this. e.g: Class X { public static String str1 = "STR1"; public static String str2 = null; static { StringBuilder b = new StringBuilder(). //Typing "b." here pops up the code completion window which does NOT show // the methods of StringBuilder. Instead, it looks up for a class // named "b" and shows that class's members in the code completion popup. // This is very much confusing. } } // This behavior can be simulated in the "Instance Initializer block" also. Class Y { private String s; { StringBuilder b = new StringBuilder(); // Typing "b." does not show methods of StringBuilder, // instead they show methods of some class 'b' } } Please Fix.
It's duplicate of issue 87560, thanks for your report anyway. *** This issue has been marked as a duplicate of 87560 ***