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 268336 - 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: NEW
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: 2016-10-04 10:13 UTC by Exceptions Reporter
Modified: 2016-10-04 10:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226565


Attachments
stacktrace (3.50 KB, text/plain)
2016-10-04 10:13 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-10-04 10:13:30 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 Beta (Build 201401141042)
VM: Java HotSpot(TM) Client VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 7

User Comments:
GUEST: beansProjects\GestionMagasin\src\tn\tuniprod\gestionmagasin\test\Test.java'. Please report a bug against java/source and attach dump file 'C:\Users\palmainfo\AppData\Roaming\NetBeans\8.0beta\var\log\Test_2.dump'.
An error occurred during parsing of 'C:\NetbeansProjects\GestionMagasin\src\tn\tuniprod\gestionmagasin\test\Test.java'. Please report a bug against java/source and attach dump file 'C:\Users\palmainfo\AppData\Roaming\NetBeans\8.0beta\var\log\Test_2.dump'.
Caused: 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:3920)
	at com.sun.tools.javac.comp.Attr.capture(Attr.java:4590)
	at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1882)
	at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:602)
	at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3149)
	at com.sun.t




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:3920)
   at com.sun.tools.javac.comp.Attr.capture(Attr.java:4590)
   at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1882)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:602)
   at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3149)
Comment 1 Exceptions Reporter 2016-10-04 10:13:32 UTC
Created attachment 162327 [details]
stacktrace