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 271440

Summary: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.code.Symbol$MethodSymbol
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 230244
Attachments: stacktrace

Description Exceptions Reporter 2017-09-06 17:16:26 UTC
This bug was originally marked as duplicate of bug 258768, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201705010001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Linux

User Comments:
GUEST: adding files

GUEST: adding files...




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:1643)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
   at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:819)
   at com.sun.tools.javac.jvm.Gen.visitExec(Gen.java:1579)
   at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1452)
   at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:597)
Comment 1 Exceptions Reporter 2017-09-06 17:16:28 UTC
Created attachment 165098 [details]
stacktrace