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 249225 - ClassCastException: com.sun.tools.javac.code.Type$JCVoidType cannot be cast to com.sun.tools.javac.code.Type$ClassType
Summary: ClassCastException: com.sun.tools.javac.code.Type$JCVoidType cannot be cast t...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-09 10:16 UTC by Exceptions Reporter
Modified: 2016-07-07 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 214010


Attachments
stacktrace (3.58 KB, text/plain)
2014-12-09 10:16 UTC, Exceptions Reporter
Details
dump file generated by the IDE - contains the file being edited (6.41 KB, text/plain)
2015-01-12 09:48 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-12-09 10:16:42 UTC
This bug was originally marked as duplicate of bug 187898, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 8

User Comments:
GUEST: I was doing a project simulation 2D . With a lot of classes  (12 )




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Type$JCVoidType cannot be cast to com.sun.tools.javac.code.Type$ClassType
   at com.sun.tools.javac.code.Types.capture(Types.java:3976)
   at com.sun.tools.javac.comp.Attr.capture(Attr.java:4681)
   at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1897)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1471)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:613)
   at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:662)
Comment 1 Exceptions Reporter 2014-12-09 10:16:43 UTC
Created attachment 150982 [details]
stacktrace
Comment 2 Marian Petras 2015-01-12 09:46:54 UTC
A similar or same exception happened to me, too. I was editing a pretty simple Java file - see the attached dump file.

The project the file is part of is a Maven-based EJB module (JavaEE 7, JDK 7).

--
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb)
Comment 3 Marian Petras 2015-01-12 09:48:48 UTC
Created attachment 151449 [details]
dump file generated by the IDE - contains the file being edited
Comment 4 Martin Balin 2016-07-07 07:18:20 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss