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.

Bug 271773

Summary: ClassCastException: com.sun.tools.javac.tree.JCTree$JCParens cannot be cast to com.sun.tools.javac.tree.JCTree$JCConditional
Product: java Reporter: matteodg <matteodg>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: jc184, teras
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 230528
Attachments: stacktrace
stacktrace

Description matteodg 2017-11-08 22:20:12 UTC
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)
Comment 1 matteodg 2017-11-08 22:20:15 UTC
Created attachment 165419 [details]
stacktrace
Comment 2 jc184 2018-02-13 12:32:29 UTC
Created attachment 165629 [details]
stacktrace

pasted code with a class