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

Summary: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.code.Symbol$MethodSymbol
Product: java Reporter: Alexander Simon <alexvsimon>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: petrk, tboudreau, vv159170, Zavael
Priority: P1    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 214683
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

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. ***