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 243810 - ClassCastException: com.sun.tools.javac.code.Type$JCNoType cannot be cast to javax.lang.model.type.DeclaredType
Summary: ClassCastException: com.sun.tools.javac.code.Type$JCNoType cannot be cast to ...
Status: RESOLVED FIXED
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-04-14 10:11 UTC by IrianR
Modified: 2014-07-15 08:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 209099


Attachments
stacktrace (8.24 KB, text/plain)
2014-04-14 10:11 UTC, IrianR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IrianR 2014-04-14 10:11:47 UTC
Build: NetBeans IDE Dev (Build 201404070001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
IrianR: Opened a java file not belonging to any opened project.




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Type$JCNoType cannot be cast to javax.lang.model.type.DeclaredType
   at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.recordResumeOnExceptionHandler(Flow.java:1535)
   at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.recordResumeOnExceptionHandler(Flow.java:1497)
   at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitMethodInvocation(Flow.java:1327)
   at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitMethodInvocation(Flow.java:381)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1477)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
Comment 1 IrianR 2014-04-14 10:11:52 UTC
Created attachment 146732 [details]
stacktrace
Comment 2 Svata Dedic 2014-07-15 08:58:34 UTC
Fixed by jet-main#c3c41233a62e during April 2014