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.
Build: NetBeans IDE Dev (Build 201110140600) VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11A511 OS: Mac OS X User Comments: dbell: Where variable exist: CompletionContext context CompletionModel comptionModel List<CompletionResultItem> results And no variable exists: substitutionElement Invoked code completion as indicated by carat: addNSAwareCompletionItems(|substitutionElement, context, completionModel, results); Where target method signature is: private static void addNSAwareCompletionItems(AXIComponent axi, CompletionContextImpl context, CompletionModel cm, List<CompletionResultItem> results) Code completion suggestions were sane: first giving a list of appropriately-typed variables for the "axi" parameter, then methods with appropriate return types for the "axi" parameter, then a separator, then all other variables/methods in scope. Above all of those suggestions, however, were two suggestions which were not sane: { org.netbeans.modules.xml.axi.visitor.AXIVisitor => } addNSAwareCompletionItems(AXIComponent axi, CompletionContextImpl context, CompletionModel cm, List<CompletionResultItem> results) void Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.tree.JCTree$JCClassDecl.getKind(JCTree.java:598) at com.sun.source.util.TreePath.<init>(TreePath.java:89) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:65) at org.netbeans.api.java.source.WorkingCopy$2.scan(WorkingCopy.java:421) at org.netbeans.api.java.source.WorkingCopy$2.scan(WorkingCopy.java:379) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:80)
Created attachment 112171 [details] stacktrace
Created attachment 112172 [details] Screenshot of odd code completion suggestions
It seems you have the Extended Java Editor module installed.
Created attachment 151617 [details] stacktrace Code completion for lambda
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=182087
Created attachment 154001 [details] stacktrace Selecting to fill a stream expression with a lambda
Created attachment 157403 [details] stacktrace Trying to introduce lambda as consumer in directorystream.forEach