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 - ClassCastException: com.sun.tools.javac.tree.JCTree$JCParens cannot be cast to com.sun.tools.javac.tree.JCTree$JCConditional
Summary: ClassCastException: com.sun.tools.javac.tree.JCTree$JCParens cannot be cast t...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-08 22:20 UTC by matteodg
Modified: 2018-04-17 07:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 230528


Attachments
stacktrace (7.54 KB, text/plain)
2017-11-08 22:20 UTC, matteodg
Details
stacktrace (4.20 KB, text/plain)
2018-02-13 12:32 UTC, jc184
Details

Note You need to log in before you can comment on or make changes to this bug.
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