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 271639 - ClassCastException: com.sun.tools.javac.tree.JCTree$JCMethodInvocation cannot be cast to com.sun.tools.javac.tree.JCTree$JCLambda
Summary: ClassCastException: com.sun.tools.javac.tree.JCTree$JCMethodInvocation cannot...
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-10-14 09:15 UTC by _ tboudreau
Modified: 2017-10-14 09:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 230579


Attachments
stacktrace (21.77 KB, text/plain)
2017-10-14 09:15 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2017-10-14 09:15:02 UTC
Build: NetBeans IDE Dev (Build 20171012-8fbff2d899d9)
VM: OpenJDK 64-Bit Server VM, 9+181, OpenJDK Runtime Environment, 9+181
OS: Linux

User Comments:
tboudreau: Just added a string test inside a lambda method.




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCMethodInvocation cannot be cast to com.sun.tools.javac.tree.JCTree$JCLambda
   at com.sun.tools.javac.comp.ArgumentAttr$ExplicitLambdaType.dup(ArgumentAttr.java:455)
   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.visitApply(ArgumentAttr.java:303)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
   at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:193)
Comment 1 _ tboudreau 2017-10-14 09:15:03 UTC
Created attachment 165285 [details]
stacktrace