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 247573 - ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to javax.lang.model.element.ExecutableElement
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cas...
Status: RESOLVED DUPLICATE of bug 246279
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 22:02 UTC by alied
Modified: 2015-03-26 13:46 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211747


Attachments
stacktrace (2.12 KB, text/plain)
2014-09-29 22:02 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2014-09-29 22:02:24 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Linux

User Comments:
alied: just restarteed Netbeans.
cleared ~/.cache/neetbeans before that.

GUEST: reopening IDE after cleaning Cache

linhchi87: How to stop scanning project in background?




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to javax.lang.model.element.ExecutableElement
   at org.netbeans.modules.java.hints.bugs.ThrowableNotThrown.methodInvocation(ThrowableNotThrown.java:155)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:336)
Comment 1 alied 2014-09-29 22:02:26 UTC
Created attachment 149603 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-10-03 22:53:19 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211747
Comment 3 markiewb 2014-11-05 09:50:11 UTC
Still valid in 

Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: Updates available to version NetBeans 8.0.1 Patch 1.1
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 4 Exceptions Reporter 2014-12-03 11:34:12 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211747
Comment 5 Svata Dedic 2015-03-26 13:46:47 UTC
Already fixed as #246279

*** This bug has been marked as a duplicate of bug 246279 ***