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 268315 - ClassCastException: com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to com.sun.tools.javac.tree.JCTree$JCMethodInvocation
Summary: ClassCastException: com.sun.tools.javac.tree.JCTree$JCConditional cannot be c...
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: 2016-10-03 06:40 UTC by brettryan
Modified: 2018-03-30 11:32 UTC (History)
16 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 223495


Attachments
stacktrace (6.64 KB, text/plain)
2016-10-03 06:40 UTC, brettryan
Details
stacktrace (5.28 KB, text/plain)
2017-03-15 03:15 UTC, brettryan
Details
stacktrace (5.28 KB, text/plain)
2017-03-15 03:21 UTC, brettryan
Details
stacktrace (4.62 KB, text/plain)
2017-08-14 13:02 UTC, jherkel
Details
stacktrace (3.90 KB, text/plain)
2017-09-24 23:47 UTC, athompson
Details
stacktrace (5.78 KB, text/plain)
2017-09-27 16:32 UTC, athompson
Details
stacktrace (3.30 KB, text/plain)
2018-03-27 20:41 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2016-10-03 06:40:31 UTC
Build: NetBeans IDE Dev (Build 201610020002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Mac OS X

User Comments:
Alniks: hit Enter in Java file

jockel: Used CTRL+Space for autocomplete a method on an object

brettryan: Produced when replacing call site reference.

Alniks: editing java file

petrk: Used code completion




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to com.sun.tools.javac.tree.JCTree$JCMethodInvocation
   at com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:586)
   at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
   at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:214)
   at com.sun.tools.javac.comp.ArgumentAttr.visitConditional(ArgumentAttr.java:255)
   at com.sun.tools.javac.tree.JCTree$JCConditional.accept(JCTree.java:1355)
   at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:192)
Comment 1 brettryan 2016-10-03 06:40:34 UTC
Created attachment 162312 [details]
stacktrace
Comment 2 brettryan 2017-03-15 03:15:39 UTC
Created attachment 163839 [details]
stacktrace

Pasted content.
Comment 3 brettryan 2017-03-15 03:21:38 UTC
Created attachment 163840 [details]
stacktrace

Started with text

Set<

Pasted DataLine to get Set<DataLine then exception thrown.
Comment 4 jherkel 2017-08-14 13:02:00 UTC
Created attachment 164948 [details]
stacktrace

edit source code
Comment 5 athompson 2017-09-24 23:47:36 UTC
Created attachment 165171 [details]
stacktrace

edit java code
Comment 6 Exceptions Reporter 2017-09-27 00:56:41 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=223495
Comment 7 athompson 2017-09-27 16:32:40 UTC
Created attachment 165193 [details]
stacktrace

adding a comment
Comment 8 alied 2018-03-27 20:41:46 UTC
Created attachment 165692 [details]
stacktrace

adding a comment.