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.
This bug was originally marked as duplicate of bug 242108, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.1 Beta (Build 201507282201) VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16 OS: Linux User Comments: everflux: invoked code completion on lamda Stacktrace: java.lang.AssertionError: Unexpected tree: ()->c with kind: LAMBDA_EXPRESSION within: ()->c with kind: LAMBDA_EXPRESSION at com.sun.tools.javac.util.Assert.error(Assert.java:133) at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.validateAnnotatedType(Attr.java:4883) at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitVarDef(Attr.java:4723) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:858) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
Created attachment 155101 [details] stacktrace
Hard to fix without a reproducible test case. Are you able to reproduce the issue on your sources? If so, could you please create a simple test case and attach it to the issue? Thanks.
I have tested it with the latest beta (Product Version: NetBeans IDE 8.1 Beta (Build 201508011000) ) and I could not reproduce the issue. The only difference is that I used an existing file instead of creating it from scratch.