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 258768 - ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.code.Symbol$MethodSymbol
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cas...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 247343 262146 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-04-11 11:45 UTC by Alexander Simon
Modified: 2016-06-03 09:50 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214683


Attachments
stacktrace (5.40 KB, text/plain)
2016-04-11 11:45 UTC, Alexander Simon
Details
stacktrace (5.64 KB, text/plain)
2016-05-05 22:48 UTC, Vladimir Voskresensky
Details
stacktrace (6.32 KB, text/plain)
2016-05-05 22:51 UTC, Vladimir Voskresensky
Details
stacktrace (6.32 KB, text/plain)
2016-05-05 23:21 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2016-04-11 11:45:03 UTC
Build: NetBeans IDE Dev (Build 20160408-032da278f54a)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.77-b03, Java(TM) SE Runtime Environment, 1.8.0_77-b03
OS: SunOS

User Comments:
Zavael: i was building my vaadin webapp project and it appeared twice randomly, I dont think it is related to building proces

alexvsimon: create panel




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.code.Symbol$MethodSymbol
   at com.sun.tools.javac.jvm.Gen.visitApply(Gen.java:1743)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1604)
   at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:830)
   at com.sun.tools.javac.jvm.Gen.visitExec(Gen.java:1683)
   at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1422)
   at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:620)
Comment 1 Alexander Simon 2016-04-11 11:45:06 UTC
Created attachment 159205 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2016-05-05 22:48:14 UTC
Created attachment 159560 [details]
stacktrace

opened java code
Comment 3 Exceptions Reporter 2016-05-05 22:48:19 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=214683
Comment 4 Vladimir Voskresensky 2016-05-05 22:51:14 UTC
Created attachment 159561 [details]
stacktrace

opened Java code
Comment 5 Exceptions Reporter 2016-05-05 22:51:17 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=214683
Comment 6 Vladimir Voskresensky 2016-05-05 23:21:13 UTC
Created attachment 159562 [details]
stacktrace

externally update java file
Comment 7 Vladimir Voskresensky 2016-05-26 21:11:02 UTC
Looks like today's IDE doesn't work at all. All modules are marked with "error" badge. They compiled just fine
Comment 8 Vladimir Voskresensky 2016-05-26 21:11:18 UTC
Product Version: NetBeans IDE Dev (Build 20160526-eaaeae03dfdf)
Java: 1.8.0_72; Java HotSpot(TM) 64-Bit Server VM 25.72-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_72-b15
System: Linux version 3.16.0-38-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/vv159170/.netbeans/dev
Cache directory: /mount/ramdisk/cache
Comment 9 Dusan Balek 2016-06-03 08:51:21 UTC
Should be fixed together with #258733.
Comment 10 Dusan Balek 2016-06-03 09:07:52 UTC
*** Bug 247343 has been marked as a duplicate of this bug. ***
Comment 11 Dusan Balek 2016-06-03 09:50:40 UTC
*** Bug 262146 has been marked as a duplicate of this bug. ***