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 201708240001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.141-b15, Java(TM) SE Runtime Environment, 1.8.0_141-b15 OS: Linux User Comments: JTD: Pasted the following line of code into a source file: retVal = WarningDialog.showConfirmDialog(stage, "Are you sure you want to accept this signature?", WarningDialog.SigConfirm); lhochet: pasting some code alied: invoked code completion with a stream. Stacktrace: java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCLambda cannot be cast to com.sun.tools.javac.tree.JCTree$JCMethodInvocation at com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:588) at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:236) at com.sun.tools.javac.comp.ArgumentAttr.visitLambda(ArgumentAttr.java:289) at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807) at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:193) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:656)
Created attachment 165004 [details] stacktrace
Created attachment 165005 [details] stacktrace the error occurred just after I wrote aCollection.stream() I selected stream() from the code completion.
Hard to fix without a reproducible test case. If the issue is reproducible, could you please create a simple test case and attach it to the issue? Thanks.
I'm not sure about the pattern. As soon as I'm able to reproduce it reliably I'll attach a sample case.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=222969
Created attachment 165191 [details] stacktrace Editing String constant
Created attachment 165209 [details] stacktrace Don't know.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=222969