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 issue was reported manually by matteodg. It already has 4 duplicates Build: NetBeans IDE Dev (Build 201711030002) VM: Java HotSpot(TM) 64-Bit Server VM, 25.144-b01, Java(TM) SE Runtime Environment, 1.8.0_144-b01 OS: Windows 10 User Comments: GUEST: typing code, no special action matteodg: Writing in the Java editor... I'll attach the dump. GUEST: Changing logging entry so it uses a lambda GUEST: Commenting out a code line. Stacktrace: java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCParens cannot be cast to com.sun.tools.javac.tree.JCTree$JCConditional at com.sun.tools.javac.comp.ArgumentAttr$ConditionalType.dup(ArgumentAttr.java:420) at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:236) at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:215) at com.sun.tools.javac.comp.ArgumentAttr.visitParens(ArgumentAttr.java:246) at com.sun.tools.javac.tree.JCTree$JCParens.accept(JCTree.java:1847) at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:193)
Created attachment 165419 [details] stacktrace
Created attachment 165629 [details] stacktrace pasted code with a class